$(function () {
    jQuery.cookie = jQuery.cookie || function (name, value, options) {
        if (typeof value != 'undefined') { // name and value given, set cookie
            options = options || {};
            if (value === null) {
                value = '';
                options.expires = -1;
            }
            var expires = '';
            if (options.expires && (typeof options.expires == 'number' || options.expires.toUTCString)) {
                var date;
                if (typeof options.expires == 'number') {
                    date = new Date();
                    date.setTime(date.getTime() + (options.expires * 24 * 60 * 60 * 1000));
                } else {
                    date = options.expires;
                }
                expires = '; expires=' + date.toUTCString(); // use expires attribute, max-age is not supported by IE
            }
            var path = options.path ? '; path=' + options.path : '';
            var domain = options.domain ? '; domain=' + options.domain : '';
            var secure = options.secure ? '; secure' : '';
            document.cookie = [name, '=', encodeURIComponent(value), expires, path, domain, secure].join('');
        } else { // only name given, get cookie
            var cookieValue = null;
            if (document.cookie && document.cookie != '') {
                var cookies = document.cookie.split(';');
                for (var i = 0; i < cookies.length; i++) {
                    var cookie = jQuery.trim(cookies[i]);
                    // Does this cookie string begin with the name we want?
                    if (cookie.substring(0, name.length + 1) == (name + '=')) {
                        cookieValue = decodeURIComponent(cookie.substring(name.length + 1));
                        break;
                    }
                }
            }
            return cookieValue;
        }
    };
});
!function (t, e) {
    "function" == typeof define && define.amd ? define(["exports"], e) : e("object" == typeof exports && "string" != typeof exports.nodeName ? module.exports : t)
}(this, function (t) {
    function e(t, e, i) {
        null != t && ("number" == typeof t ? this.fromNumber(t, e, i) : null == e && "string" != typeof t ? this.fromString(t, 256) : this.fromString(t, e))
    }

    function i() {
        return new e(null)
    }

    function r(t, e, i, r, s, n) {
        for (; --n >= 0;) {
            var o = e * this[t++] + i[r] + s;
            s = Math.floor(o / 67108864), i[r++] = 67108863 & o
        }
        return s
    }

    function s(t, e, i, r, s, n) {
        for (var o = 32767 & e, h = e >> 15; --n >= 0;) {
            var a = 32767 & this[t], u = this[t++] >> 15, c = h * a + u * o;
            a = o * a + ((32767 & c) << 15) + i[r] + (1073741823 & s), s = (a >>> 30) + (c >>> 15) + h * u + (s >>> 30), i[r++] = 1073741823 & a
        }
        return s
    }

    function n(t, e, i, r, s, n) {
        for (var o = 16383 & e, h = e >> 14; --n >= 0;) {
            var a = 16383 & this[t], u = this[t++] >> 14, c = h * a + u * o;
            a = o * a + ((16383 & c) << 14) + i[r] + s, s = (a >> 28) + (c >> 14) + h * u, i[r++] = 268435455 & a
        }
        return s
    }

    function o(t) {
        return Be.charAt(t)
    }

    function h(t, e) {
        var i = Ke[t.charCodeAt(e)];
        return null == i ? -1 : i
    }

    function a(t) {
        for (var e = this.t - 1; e >= 0; --e) t[e] = this[e];
        t.t = this.t, t.s = this.s
    }

    function u(t) {
        this.t = 1, this.s = 0 > t ? -1 : 0, t > 0 ? this[0] = t : -1 > t ? this[0] = t + this.DV : this.t = 0
    }

    function c(t) {
        var e = i();
        return e.fromInt(t), e
    }

    function f(t, i) {
        var r;
        if (16 == i) r = 4; else if (8 == i) r = 3; else if (256 == i) r = 8; else if (2 == i) r = 1; else if (32 == i) r = 5; else {
            if (4 != i) return void this.fromRadix(t, i);
            r = 2
        }
        this.t = 0, this.s = 0;
        for (var s = t.length, n = !1, o = 0; --s >= 0;) {
            var a = 8 == r ? 255 & t[s] : h(t, s);
            0 > a ? "-" == t.charAt(s) && (n = !0) : (n = !1, 0 == o ? this[this.t++] = a : o + r > this.DB ? (this[this.t - 1] |= (a & (1 << this.DB - o) - 1) << o, this[this.t++] = a >> this.DB - o) : this[this.t - 1] |= a << o, o += r, o >= this.DB && (o -= this.DB))
        }
        8 == r && 0 != (128 & t[0]) && (this.s = -1, o > 0 && (this[this.t - 1] |= (1 << this.DB - o) - 1 << o)), this.clamp(), n && e.ZERO.subTo(this, this)
    }

    function p() {
        for (var t = this.s & this.DM; this.t > 0 && this[this.t - 1] == t;) --this.t
    }

    function l(t) {
        if (this.s < 0) return "-" + this.negate().toString(t);
        var e;
        if (16 == t) e = 4; else if (8 == t) e = 3; else if (2 == t) e = 1; else if (32 == t) e = 5; else {
            if (4 != t) return this.toRadix(t);
            e = 2
        }
        var i, r = (1 << e) - 1, s = !1, n = "", h = this.t, a = this.DB - h * this.DB % e;
        if (h-- > 0) for (a < this.DB && (i = this[h] >> a) > 0 && (s = !0, n = o(i)); h >= 0;) e > a ? (i = (this[h] & (1 << a) - 1) << e - a, i |= this[--h] >> (a += this.DB - e)) : (i = this[h] >> (a -= e) & r, 0 >= a && (a += this.DB, --h)), i > 0 && (s = !0), s && (n += o(i));
        return s ? n : "0"
    }

    function d() {
        var t = i();
        return e.ZERO.subTo(this, t), t
    }

    function g() {
        return this.s < 0 ? this.negate() : this
    }

    function m(t) {
        var e = this.s - t.s;
        if (0 != e) return e;
        var i = this.t;
        if (e = i - t.t, 0 != e) return this.s < 0 ? -e : e;
        for (; --i >= 0;) if (0 != (e = this[i] - t[i])) return e;
        return 0
    }

    function y(t) {
        var e, i = 1;
        return 0 != (e = t >>> 16) && (t = e, i += 16), 0 != (e = t >> 8) && (t = e, i += 8), 0 != (e = t >> 4) && (t = e, i += 4), 0 != (e = t >> 2) && (t = e, i += 2), 0 != (e = t >> 1) && (t = e, i += 1), i
    }

    function b() {
        return this.t <= 0 ? 0 : this.DB * (this.t - 1) + y(this[this.t - 1] ^ this.s & this.DM)
    }

    function T(t, e) {
        var i;
        for (i = this.t - 1; i >= 0; --i) e[i + t] = this[i];
        for (i = t - 1; i >= 0; --i) e[i] = 0;
        e.t = this.t + t, e.s = this.s
    }

    function S(t, e) {
        for (var i = t; i < this.t; ++i) e[i - t] = this[i];
        e.t = Math.max(this.t - t, 0), e.s = this.s
    }

    function R(t, e) {
        var i, r = t % this.DB, s = this.DB - r, n = (1 << s) - 1, o = Math.floor(t / this.DB),
            h = this.s << r & this.DM;
        for (i = this.t - 1; i >= 0; --i) e[i + o + 1] = this[i] >> s | h, h = (this[i] & n) << r;
        for (i = o - 1; i >= 0; --i) e[i] = 0;
        e[o] = h, e.t = this.t + o + 1, e.s = this.s, e.clamp()
    }

    function E(t, e) {
        e.s = this.s;
        var i = Math.floor(t / this.DB);
        if (i >= this.t) return void (e.t = 0);
        var r = t % this.DB, s = this.DB - r, n = (1 << r) - 1;
        e[0] = this[i] >> r;
        for (var o = i + 1; o < this.t; ++o) e[o - i - 1] |= (this[o] & n) << s, e[o - i] = this[o] >> r;
        r > 0 && (e[this.t - i - 1] |= (this.s & n) << s), e.t = this.t - i, e.clamp()
    }

    function D(t, e) {
        for (var i = 0, r = 0, s = Math.min(t.t, this.t); s > i;) r += this[i] - t[i], e[i++] = r & this.DM, r >>= this.DB;
        if (t.t < this.t) {
            for (r -= t.s; i < this.t;) r += this[i], e[i++] = r & this.DM, r >>= this.DB;
            r += this.s
        } else {
            for (r += this.s; i < t.t;) r -= t[i], e[i++] = r & this.DM, r >>= this.DB;
            r -= t.s
        }
        e.s = 0 > r ? -1 : 0, -1 > r ? e[i++] = this.DV + r : r > 0 && (e[i++] = r), e.t = i, e.clamp()
    }

    function w(t, i) {
        var r = this.abs(), s = t.abs(), n = r.t;
        for (i.t = n + s.t; --n >= 0;) i[n] = 0;
        for (n = 0; n < s.t; ++n) i[n + r.t] = r.am(0, s[n], i, n, 0, r.t);
        i.s = 0, i.clamp(), this.s != t.s && e.ZERO.subTo(i, i)
    }

    function x(t) {
        for (var e = this.abs(), i = t.t = 2 * e.t; --i >= 0;) t[i] = 0;
        for (i = 0; i < e.t - 1; ++i) {
            var r = e.am(i, e[i], t, 2 * i, 0, 1);
            (t[i + e.t] += e.am(i + 1, 2 * e[i], t, 2 * i + 1, r, e.t - i - 1)) >= e.DV && (t[i + e.t] -= e.DV, t[i + e.t + 1] = 1)
        }
        t.t > 0 && (t[t.t - 1] += e.am(i, e[i], t, 2 * i, 0, 1)), t.s = 0, t.clamp()
    }

    function B(t, r, s) {
        var n = t.abs();
        if (!(n.t <= 0)) {
            var o = this.abs();
            if (o.t < n.t) return null != r && r.fromInt(0), void (null != s && this.copyTo(s));
            null == s && (s = i());
            var h = i(), a = this.s, u = t.s, c = this.DB - y(n[n.t - 1]);
            c > 0 ? (n.lShiftTo(c, h), o.lShiftTo(c, s)) : (n.copyTo(h), o.copyTo(s));
            var f = h.t, p = h[f - 1];
            if (0 != p) {
                var l = p * (1 << this.F1) + (f > 1 ? h[f - 2] >> this.F2 : 0), d = this.FV / l, g = (1 << this.F1) / l,
                    m = 1 << this.F2, v = s.t, b = v - f, T = null == r ? i() : r;
                for (h.dlShiftTo(b, T), s.compareTo(T) >= 0 && (s[s.t++] = 1, s.subTo(T, s)), e.ONE.dlShiftTo(f, T), T.subTo(h, h); h.t < f;) h[h.t++] = 0;
                for (; --b >= 0;) {
                    var S = s[--v] == p ? this.DM : Math.floor(s[v] * d + (s[v - 1] + m) * g);
                    if ((s[v] += h.am(0, S, s, b, 0, f)) < S) for (h.dlShiftTo(b, T), s.subTo(T, s); s[v] < --S;) s.subTo(T, s)
                }
                null != r && (s.drShiftTo(f, r), a != u && e.ZERO.subTo(r, r)), s.t = f, s.clamp(), c > 0 && s.rShiftTo(c, s), 0 > a && e.ZERO.subTo(s, s)
            }
        }
    }

    function K(t) {
        var r = i();
        return this.abs().divRemTo(t, null, r), this.s < 0 && r.compareTo(e.ZERO) > 0 && t.subTo(r, r), r
    }

    function A(t) {
        this.m = t
    }

    function U(t) {
        return t.s < 0 || t.compareTo(this.m) >= 0 ? t.mod(this.m) : t
    }

    function O(t) {
        return t
    }

    function V(t) {
        t.divRemTo(this.m, null, t)
    }

    function N(t, e, i) {
        t.multiplyTo(e, i), this.reduce(i)
    }

    function J(t, e) {
        t.squareTo(e), this.reduce(e)
    }

    function I() {
        if (this.t < 1) return 0;
        var t = this[0];
        if (0 == (1 & t)) return 0;
        var e = 3 & t;
        return e = e * (2 - (15 & t) * e) & 15, e = e * (2 - (255 & t) * e) & 255, e = e * (2 - ((65535 & t) * e & 65535)) & 65535, e = e * (2 - t * e % this.DV) % this.DV, e > 0 ? this.DV - e : -e
    }

    function P(t) {
        this.m = t, this.mp = t.invDigit(), this.mpl = 32767 & this.mp, this.mph = this.mp >> 15, this.um = (1 << t.DB - 15) - 1, this.mt2 = 2 * t.t
    }

    function M(t) {
        var r = i();
        return t.abs().dlShiftTo(this.m.t, r), r.divRemTo(this.m, null, r), t.s < 0 && r.compareTo(e.ZERO) > 0 && this.m.subTo(r, r), r
    }

    function L(t) {
        var e = i();
        return t.copyTo(e), this.reduce(e), e
    }

    function q(t) {
        for (; t.t <= this.mt2;) t[t.t++] = 0;
        for (var e = 0; e < this.m.t; ++e) {
            var i = 32767 & t[e], r = i * this.mpl + ((i * this.mph + (t[e] >> 15) * this.mpl & this.um) << 15) & t.DM;
            for (i = e + this.m.t, t[i] += this.m.am(0, r, t, e, 0, this.m.t); t[i] >= t.DV;) t[i] -= t.DV, t[++i]++
        }
        t.clamp(), t.drShiftTo(this.m.t, t), t.compareTo(this.m) >= 0 && t.subTo(this.m, t)
    }

    function C(t, e) {
        t.squareTo(e), this.reduce(e)
    }

    function H(t, e, i) {
        t.multiplyTo(e, i), this.reduce(i)
    }

    function j() {
        return 0 == (this.t > 0 ? 1 & this[0] : this.s)
    }

    function k(t, r) {
        if (t > 4294967295 || 1 > t) return e.ONE;
        var s = i(), n = i(), o = r.convert(this), h = y(t) - 1;
        for (o.copyTo(s); --h >= 0;) if (r.sqrTo(s, n), (t & 1 << h) > 0) r.mulTo(n, o, s); else {
            var a = s;
            s = n, n = a
        }
        return r.revert(s)
    }

    function F(t, e) {
        var i;
        return i = 256 > t || e.isEven() ? new A(e) : new P(e), this.exp(t, i)
    }

    function _() {
        var t = i();
        return this.copyTo(t), t
    }

    function z() {
        if (this.s < 0) {
            if (1 == this.t) return this[0] - this.DV;
            if (0 == this.t) return -1
        } else {
            if (1 == this.t) return this[0];
            if (0 == this.t) return 0
        }
        return (this[1] & (1 << 32 - this.DB) - 1) << this.DB | this[0]
    }

    function Z() {
        return 0 == this.t ? this.s : this[0] << 24 >> 24
    }

    function G() {
        return 0 == this.t ? this.s : this[0] << 16 >> 16
    }

    function $(t) {
        return Math.floor(Math.LN2 * this.DB / Math.log(t))
    }

    function Y() {
        return this.s < 0 ? -1 : this.t <= 0 || 1 == this.t && this[0] <= 0 ? 0 : 1
    }

    function W(t) {
        if (null == t && (t = 10), 0 == this.signum() || 2 > t || t > 36) return "0";
        var e = this.chunkSize(t), r = Math.pow(t, e), s = c(r), n = i(), o = i(), h = "";
        for (this.divRemTo(s, n, o); n.signum() > 0;) h = (r + o.intValue()).toString(t).substr(1) + h, n.divRemTo(s, n, o);
        return o.intValue().toString(t) + h
    }

    function Q(t, i) {
        this.fromInt(0), null == i && (i = 10);
        for (var r = this.chunkSize(i), s = Math.pow(i, r), n = !1, o = 0, a = 0, u = 0; u < t.length; ++u) {
            var c = h(t, u);
            0 > c ? "-" == t.charAt(u) && 0 == this.signum() && (n = !0) : (a = i * a + c, ++o >= r && (this.dMultiply(s), this.dAddOffset(a, 0), o = 0, a = 0))
        }
        o > 0 && (this.dMultiply(Math.pow(i, o)), this.dAddOffset(a, 0)), n && e.ZERO.subTo(this, this)
    }

    function X(t, i, r) {
        if ("number" == typeof i) if (2 > t) this.fromInt(1); else for (this.fromNumber(t, r), this.testBit(t - 1) || this.bitwiseTo(e.ONE.shiftLeft(t - 1), ht, this), this.isEven() && this.dAddOffset(1, 0); !this.isProbablePrime(i);) this.dAddOffset(2, 0), this.bitLength() > t && this.subTo(e.ONE.shiftLeft(t - 1), this); else {
            var s = new Array, n = 7 & t;
            s.length = (t >> 3) + 1, i.nextBytes(s), n > 0 ? s[0] &= (1 << n) - 1 : s[0] = 0, this.fromString(s, 256)
        }
    }

    function tt() {
        var t = this.t, e = new Array;
        e[0] = this.s;
        var i, r = this.DB - t * this.DB % 8, s = 0;
        if (t-- > 0) for (r < this.DB && (i = this[t] >> r) != (this.s & this.DM) >> r && (e[s++] = i | this.s << this.DB - r); t >= 0;) 8 > r ? (i = (this[t] & (1 << r) - 1) << 8 - r, i |= this[--t] >> (r += this.DB - 8)) : (i = this[t] >> (r -= 8) & 255, 0 >= r && (r += this.DB, --t)), 0 != (128 & i) && (i |= -256), 0 == s && (128 & this.s) != (128 & i) && ++s, (s > 0 || i != this.s) && (e[s++] = i);
        return e
    }

    function et(t) {
        return 0 == this.compareTo(t)
    }

    function it(t) {
        return this.compareTo(t) < 0 ? this : t
    }

    function rt(t) {
        return this.compareTo(t) > 0 ? this : t
    }

    function st(t, e, i) {
        var r, s, n = Math.min(t.t, this.t);
        for (r = 0; n > r; ++r) i[r] = e(this[r], t[r]);
        if (t.t < this.t) {
            for (s = t.s & this.DM, r = n; r < this.t; ++r) i[r] = e(this[r], s);
            i.t = this.t
        } else {
            for (s = this.s & this.DM, r = n; r < t.t; ++r) i[r] = e(s, t[r]);
            i.t = t.t
        }
        i.s = e(this.s, t.s), i.clamp()
    }

    function nt(t, e) {
        return t & e
    }

    function ot(t) {
        var e = i();
        return this.bitwiseTo(t, nt, e), e
    }

    function ht(t, e) {
        return t | e
    }

    function at(t) {
        var e = i();
        return this.bitwiseTo(t, ht, e), e
    }

    function ut(t, e) {
        return t ^ e
    }

    function ct(t) {
        var e = i();
        return this.bitwiseTo(t, ut, e), e
    }

    function ft(t, e) {
        return t & ~e
    }

    function pt(t) {
        var e = i();
        return this.bitwiseTo(t, ft, e), e
    }

    function lt() {
        for (var t = i(), e = 0; e < this.t; ++e) t[e] = this.DM & ~this[e];
        return t.t = this.t, t.s = ~this.s, t
    }

    function dt(t) {
        var e = i();
        return 0 > t ? this.rShiftTo(-t, e) : this.lShiftTo(t, e), e
    }

    function gt(t) {
        var e = i();
        return 0 > t ? this.lShiftTo(-t, e) : this.rShiftTo(t, e), e
    }

    function mt(t) {
        if (0 == t) return -1;
        var e = 0;
        return 0 == (65535 & t) && (t >>= 16, e += 16), 0 == (255 & t) && (t >>= 8, e += 8), 0 == (15 & t) && (t >>= 4, e += 4), 0 == (3 & t) && (t >>= 2, e += 2), 0 == (1 & t) && ++e, e
    }

    function yt() {
        for (var t = 0; t < this.t; ++t) if (0 != this[t]) return t * this.DB + mt(this[t]);
        return this.s < 0 ? this.t * this.DB : -1
    }

    function vt(t) {
        for (var e = 0; 0 != t;) t &= t - 1, ++e;
        return e
    }

    function bt() {
        for (var t = 0, e = this.s & this.DM, i = 0; i < this.t; ++i) t += vt(this[i] ^ e);
        return t
    }

    function Tt(t) {
        var e = Math.floor(t / this.DB);
        return e >= this.t ? 0 != this.s : 0 != (this[e] & 1 << t % this.DB)
    }

    function St(t, i) {
        var r = e.ONE.shiftLeft(t);
        return this.bitwiseTo(r, i, r), r
    }

    function Rt(t) {
        return this.changeBit(t, ht)
    }

    function Et(t) {
        return this.changeBit(t, ft)
    }

    function Dt(t) {
        return this.changeBit(t, ut)
    }

    function wt(t, e) {
        for (var i = 0, r = 0, s = Math.min(t.t, this.t); s > i;) r += this[i] + t[i], e[i++] = r & this.DM, r >>= this.DB;
        if (t.t < this.t) {
            for (r += t.s; i < this.t;) r += this[i], e[i++] = r & this.DM, r >>= this.DB;
            r += this.s
        } else {
            for (r += this.s; i < t.t;) r += t[i], e[i++] = r & this.DM, r >>= this.DB;
            r += t.s
        }
        e.s = 0 > r ? -1 : 0, r > 0 ? e[i++] = r : -1 > r && (e[i++] = this.DV + r), e.t = i, e.clamp()
    }

    function xt(t) {
        var e = i();
        return this.addTo(t, e), e
    }

    function Bt(t) {
        var e = i();
        return this.subTo(t, e), e
    }

    function Kt(t) {
        var e = i();
        return this.multiplyTo(t, e), e
    }

    function At() {
        var t = i();
        return this.squareTo(t), t
    }

    function Ut(t) {
        var e = i();
        return this.divRemTo(t, e, null), e
    }

    function Ot(t) {
        var e = i();
        return this.divRemTo(t, null, e), e
    }

    function Vt(t) {
        var e = i(), r = i();
        return this.divRemTo(t, e, r), new Array(e, r)
    }

    function Nt(t) {
        this[this.t] = this.am(0, t - 1, this, 0, 0, this.t), ++this.t, this.clamp()
    }

    function Jt(t, e) {
        if (0 != t) {
            for (; this.t <= e;) this[this.t++] = 0;
            for (this[e] += t; this[e] >= this.DV;) this[e] -= this.DV, ++e >= this.t && (this[this.t++] = 0), ++this[e]
        }
    }

    function It() {
    }

    function Pt(t) {
        return t
    }

    function Mt(t, e, i) {
        t.multiplyTo(e, i)
    }

    function Lt(t, e) {
        t.squareTo(e)
    }

    function qt(t) {
        return this.exp(t, new It)
    }

    function Ct(t, e, i) {
        var r = Math.min(this.t + t.t, e);
        for (i.s = 0, i.t = r; r > 0;) i[--r] = 0;
        var s;
        for (s = i.t - this.t; s > r; ++r) i[r + this.t] = this.am(0, t[r], i, r, 0, this.t);
        for (s = Math.min(t.t, e); s > r; ++r) this.am(0, t[r], i, r, 0, e - r);
        i.clamp()
    }

    function Ht(t, e, i) {
        --e;
        var r = i.t = this.t + t.t - e;
        for (i.s = 0; --r >= 0;) i[r] = 0;
        for (r = Math.max(e - this.t, 0); r < t.t; ++r) i[this.t + r - e] = this.am(e - r, t[r], i, 0, 0, this.t + r - e);
        i.clamp(), i.drShiftTo(1, i)
    }

    function jt(t) {
        this.r2 = i(), this.q3 = i(), e.ONE.dlShiftTo(2 * t.t, this.r2), this.mu = this.r2.divide(t), this.m = t
    }

    function kt(t) {
        if (t.s < 0 || t.t > 2 * this.m.t) return t.mod(this.m);
        if (t.compareTo(this.m) < 0) return t;
        var e = i();
        return t.copyTo(e), this.reduce(e), e
    }

    function Ft(t) {
        return t
    }

    function _t(t) {
        for (t.drShiftTo(this.m.t - 1, this.r2), t.t > this.m.t + 1 && (t.t = this.m.t + 1, t.clamp()), this.mu.multiplyUpperTo(this.r2, this.m.t + 1, this.q3), this.m.multiplyLowerTo(this.q3, this.m.t + 1, this.r2); t.compareTo(this.r2) < 0;) t.dAddOffset(1, this.m.t + 1);
        for (t.subTo(this.r2, t); t.compareTo(this.m) >= 0;) t.subTo(this.m, t)
    }

    function zt(t, e) {
        t.squareTo(e), this.reduce(e)
    }

    function Zt(t, e, i) {
        t.multiplyTo(e, i), this.reduce(i)
    }

    function Gt(t, e) {
        var r, s, n = t.bitLength(), o = c(1);
        if (0 >= n) return o;
        r = 18 > n ? 1 : 48 > n ? 3 : 144 > n ? 4 : 768 > n ? 5 : 6, s = 8 > n ? new A(e) : e.isEven() ? new jt(e) : new P(e);
        var h = new Array, a = 3, u = r - 1, f = (1 << r) - 1;
        if (h[1] = s.convert(this), r > 1) {
            var p = i();
            for (s.sqrTo(h[1], p); f >= a;) h[a] = i(), s.mulTo(p, h[a - 2], h[a]), a += 2
        }
        var l, d, g = t.t - 1, m = !0, v = i();
        for (n = y(t[g]) - 1; g >= 0;) {
            for (n >= u ? l = t[g] >> n - u & f : (l = (t[g] & (1 << n + 1) - 1) << u - n, g > 0 && (l |= t[g - 1] >> this.DB + n - u)), a = r; 0 == (1 & l);) l >>= 1, --a;
            if ((n -= a) < 0 && (n += this.DB, --g), m) h[l].copyTo(o), m = !1; else {
                for (; a > 1;) s.sqrTo(o, v), s.sqrTo(v, o), a -= 2;
                a > 0 ? s.sqrTo(o, v) : (d = o, o = v, v = d), s.mulTo(v, h[l], o)
            }
            for (; g >= 0 && 0 == (t[g] & 1 << n);) s.sqrTo(o, v), d = o, o = v, v = d, --n < 0 && (n = this.DB - 1, --g)
        }
        return s.revert(o)
    }

    function $t(t) {
        var e = this.s < 0 ? this.negate() : this.clone(), i = t.s < 0 ? t.negate() : t.clone();
        if (e.compareTo(i) < 0) {
            var r = e;
            e = i, i = r
        }
        var s = e.getLowestSetBit(), n = i.getLowestSetBit();
        if (0 > n) return e;
        for (n > s && (n = s), n > 0 && (e.rShiftTo(n, e), i.rShiftTo(n, i)); e.signum() > 0;) (s = e.getLowestSetBit()) > 0 && e.rShiftTo(s, e), (s = i.getLowestSetBit()) > 0 && i.rShiftTo(s, i), e.compareTo(i) >= 0 ? (e.subTo(i, e), e.rShiftTo(1, e)) : (i.subTo(e, i), i.rShiftTo(1, i));
        return n > 0 && i.lShiftTo(n, i), i
    }

    function Yt(t) {
        if (0 >= t) return 0;
        var e = this.DV % t, i = this.s < 0 ? t - 1 : 0;
        if (this.t > 0) if (0 == e) i = this[0] % t; else for (var r = this.t - 1; r >= 0; --r) i = (e * i + this[r]) % t;
        return i
    }

    function Wt(t) {
        var i = t.isEven();
        if (this.isEven() && i || 0 == t.signum()) return e.ZERO;
        for (var r = t.clone(), s = this.clone(), n = c(1), o = c(0), h = c(0), a = c(1); 0 != r.signum();) {
            for (; r.isEven();) r.rShiftTo(1, r), i ? (n.isEven() && o.isEven() || (n.addTo(this, n), o.subTo(t, o)), n.rShiftTo(1, n)) : o.isEven() || o.subTo(t, o), o.rShiftTo(1, o);
            for (; s.isEven();) s.rShiftTo(1, s), i ? (h.isEven() && a.isEven() || (h.addTo(this, h), a.subTo(t, a)), h.rShiftTo(1, h)) : a.isEven() || a.subTo(t, a), a.rShiftTo(1, a);
            r.compareTo(s) >= 0 ? (r.subTo(s, r), i && n.subTo(h, n), o.subTo(a, o)) : (s.subTo(r, s), i && h.subTo(n, h), a.subTo(o, a))
        }
        return 0 != s.compareTo(e.ONE) ? e.ZERO : a.compareTo(t) >= 0 ? a.subtract(t) : a.signum() < 0 ? (a.addTo(t, a), a.signum() < 0 ? a.add(t) : a) : a
    }

    function Qt(t) {
        var e, i = this.abs();
        if (1 == i.t && i[0] <= Ae[Ae.length - 1]) {
            for (e = 0; e < Ae.length; ++e) if (i[0] == Ae[e]) return !0;
            return !1
        }
        if (i.isEven()) return !1;
        for (e = 1; e < Ae.length;) {
            for (var r = Ae[e], s = e + 1; s < Ae.length && Ue > r;) r *= Ae[s++];
            for (r = i.modInt(r); s > e;) if (r % Ae[e++] == 0) return !1
        }
        return i.millerRabin(t)
    }

    function Xt(t) {
        var r = this.subtract(e.ONE), s = r.getLowestSetBit();
        if (0 >= s) return !1;
        var n = r.shiftRight(s);
        t = t + 1 >> 1, t > Ae.length && (t = Ae.length);
        for (var o = i(), h = 0; t > h; ++h) {
            o.fromInt(Ae[Math.floor(Math.random() * Ae.length)]);
            var a = o.modPow(n, this);
            if (0 != a.compareTo(e.ONE) && 0 != a.compareTo(r)) {
                for (var u = 1; u++ < s && 0 != a.compareTo(r);) if (a = a.modPowInt(2, this), 0 == a.compareTo(e.ONE)) return !1;
                if (0 != a.compareTo(r)) return !1
            }
        }
        return !0
    }

    function te() {
        this.i = 0, this.j = 0, this.S = new Array
    }

    function ee(t) {
        var e, i, r;
        for (e = 0; 256 > e; ++e) this.S[e] = e;
        for (i = 0, e = 0; 256 > e; ++e) i = i + this.S[e] + t[e % t.length] & 255, r = this.S[e], this.S[e] = this.S[i], this.S[i] = r;
        this.i = 0, this.j = 0
    }

    function ie() {
        var t;
        return this.i = this.i + 1 & 255, this.j = this.j + this.S[this.i] & 255, t = this.S[this.i], this.S[this.i] = this.S[this.j], this.S[this.j] = t, this.S[t + this.S[this.i] & 255]
    }

    function re() {
        return new te
    }

    function se() {
        if (null == Oe) {
            for (Oe = re(); Je > Ne;) {
                var t = Math.floor(65536 * Math.random());
                Ve[Ne++] = 255 & t
            }
            for (Oe.init(Ve), Ne = 0; Ne < Ve.length; ++Ne) Ve[Ne] = 0;
            Ne = 0
        }
        return Oe.next()
    }

    function ne(t) {
        var e;
        for (e = 0; e < t.length; ++e) t[e] = se()
    }

    function oe() {
    }

    function he(t, i) {
        return new e(t, i)
    }

    function ae(t, i) {
        if (i < t.length + 11) return console.error("Message too long for RSA"), null;
        for (var r = new Array, s = t.length - 1; s >= 0 && i > 0;) {
            var n = t.charCodeAt(s--);
            128 > n ? r[--i] = n : n > 127 && 2048 > n ? (r[--i] = 63 & n | 128, r[--i] = n >> 6 | 192) : (r[--i] = 63 & n | 128, r[--i] = n >> 6 & 63 | 128, r[--i] = n >> 12 | 224)
        }
        r[--i] = 0;
        for (var o = new oe, h = new Array; i > 2;) {
            for (h[0] = 0; 0 == h[0];) o.nextBytes(h);
            r[--i] = h[0]
        }
        return r[--i] = 2, r[--i] = 0, new e(r)
    }

    function ue() {
        this.n = null, this.e = 0, this.d = null, this.p = null, this.q = null, this.dmp1 = null, this.dmq1 = null, this.coeff = null
    }

    function ce(t, e) {
        null != t && null != e && t.length > 0 && e.length > 0 ? (this.n = he(t, 16), this.e = parseInt(e, 16)) : console.error("Invalid RSA public key")
    }

    function fe(t) {
        return t.modPowInt(this.e, this.n)
    }

    function pe(t) {
        var e = ae(t, this.n.bitLength() + 7 >> 3);
        if (null == e) return null;
        var i = this.doPublic(e);
        if (null == i) return null;
        var r = i.toString(16);
        return 0 == (1 & r.length) ? r : "0" + r
    }

    function le(t, e) {
        for (var i = t.toByteArray(), r = 0; r < i.length && 0 == i[r];) ++r;
        if (i.length - r != e - 1 || 2 != i[r]) return null;
        for (++r; 0 != i[r];) if (++r >= i.length) return null;
        for (var s = ""; ++r < i.length;) {
            var n = 255 & i[r];
            128 > n ? s += String.fromCharCode(n) : n > 191 && 224 > n ? (s += String.fromCharCode((31 & n) << 6 | 63 & i[r + 1]), ++r) : (s += String.fromCharCode((15 & n) << 12 | (63 & i[r + 1]) << 6 | 63 & i[r + 2]), r += 2)
        }
        return s
    }

    function de(t, e, i) {
        null != t && null != e && t.length > 0 && e.length > 0 ? (this.n = he(t, 16), this.e = parseInt(e, 16), this.d = he(i, 16)) : console.error("Invalid RSA private key")
    }

    function ge(t, e, i, r, s, n, o, h) {
        null != t && null != e && t.length > 0 && e.length > 0 ? (this.n = he(t, 16), this.e = parseInt(e, 16), this.d = he(i, 16), this.p = he(r, 16), this.q = he(s, 16), this.dmp1 = he(n, 16), this.dmq1 = he(o, 16), this.coeff = he(h, 16)) : console.error("Invalid RSA private key")
    }

    function me(t, i) {
        var r = new oe, s = t >> 1;
        this.e = parseInt(i, 16);
        for (var n = new e(i, 16); ;) {
            for (; this.p = new e(t - s, 1, r), 0 != this.p.subtract(e.ONE).gcd(n).compareTo(e.ONE) || !this.p.isProbablePrime(10);) ;
            for (; this.q = new e(s, 1, r), 0 != this.q.subtract(e.ONE).gcd(n).compareTo(e.ONE) || !this.q.isProbablePrime(10);) ;
            if (this.p.compareTo(this.q) <= 0) {
                var o = this.p;
                this.p = this.q, this.q = o
            }
            var h = this.p.subtract(e.ONE), a = this.q.subtract(e.ONE), u = h.multiply(a);
            if (0 == u.gcd(n).compareTo(e.ONE)) {
                this.n = this.p.multiply(this.q), this.d = n.modInverse(u), this.dmp1 = this.d.mod(h), this.dmq1 = this.d.mod(a), this.coeff = this.q.modInverse(this.p);
                break
            }
        }
    }

    function ye(t) {
        if (null == this.p || null == this.q) return t.modPow(this.d, this.n);
        for (var e = t.mod(this.p).modPow(this.dmp1, this.p), i = t.mod(this.q).modPow(this.dmq1, this.q); e.compareTo(i) < 0;) e = e.add(this.p);
        return e.subtract(i).multiply(this.coeff).mod(this.p).multiply(this.q).add(i)
    }

    function ve(t) {
        var e = he(t, 16), i = this.doPrivate(e);
        return null == i ? null : le(i, this.n.bitLength() + 7 >> 3)
    }

    function be(t) {
        var e, i, r = "";
        for (e = 0; e + 3 <= t.length; e += 3) i = parseInt(t.substring(e, e + 3), 16), r += Le.charAt(i >> 6) + Le.charAt(63 & i);
        for (e + 1 == t.length ? (i = parseInt(t.substring(e, e + 1), 16), r += Le.charAt(i << 2)) : e + 2 == t.length && (i = parseInt(t.substring(e, e + 2), 16), r += Le.charAt(i >> 2) + Le.charAt((3 & i) << 4)); (3 & r.length) > 0;) r += qe;
        return r
    }

    function Te(t) {
        var e, i, r = "", s = 0;
        for (e = 0; e < t.length && t.charAt(e) != qe; ++e) v = Le.indexOf(t.charAt(e)), v < 0 || (0 == s ? (r += o(v >> 2), i = 3 & v, s = 1) : 1 == s ? (r += o(i << 2 | v >> 4), i = 15 & v, s = 2) : 2 == s ? (r += o(i), r += o(v >> 2), i = 3 & v, s = 3) : (r += o(i << 2 | v >> 4), r += o(15 & v), s = 0));
        return 1 == s && (r += o(i << 2)), r
    }

    var Se, Re = 0xdeadbeefcafe, Ee = 15715070 == (16777215 & Re);
    Ee && "Microsoft Internet Explorer" == navigator.appName ? (e.prototype.am = s, Se = 30) : Ee && "Netscape" != navigator.appName ? (e.prototype.am = r, Se = 26) : (e.prototype.am = n, Se = 28), e.prototype.DB = Se, e.prototype.DM = (1 << Se) - 1, e.prototype.DV = 1 << Se;
    var De = 52;
    e.prototype.FV = Math.pow(2, De), e.prototype.F1 = De - Se, e.prototype.F2 = 2 * Se - De;
    var we, xe, Be = "0123456789abcdefghijklmnopqrstuvwxyz", Ke = new Array;
    for (we = "0".charCodeAt(0), xe = 0; 9 >= xe; ++xe) Ke[we++] = xe;
    for (we = "a".charCodeAt(0), xe = 10; 36 > xe; ++xe) Ke[we++] = xe;
    for (we = "A".charCodeAt(0), xe = 10; 36 > xe; ++xe) Ke[we++] = xe;
    A.prototype.convert = U, A.prototype.revert = O, A.prototype.reduce = V, A.prototype.mulTo = N, A.prototype.sqrTo = J, P.prototype.convert = M, P.prototype.revert = L, P.prototype.reduce = q, P.prototype.mulTo = H, P.prototype.sqrTo = C, e.prototype.copyTo = a, e.prototype.fromInt = u, e.prototype.fromString = f, e.prototype.clamp = p, e.prototype.dlShiftTo = T, e.prototype.drShiftTo = S, e.prototype.lShiftTo = R, e.prototype.rShiftTo = E, e.prototype.subTo = D, e.prototype.multiplyTo = w, e.prototype.squareTo = x, e.prototype.divRemTo = B, e.prototype.invDigit = I, e.prototype.isEven = j, e.prototype.exp = k, e.prototype.toString = l, e.prototype.negate = d, e.prototype.abs = g, e.prototype.compareTo = m, e.prototype.bitLength = b, e.prototype.mod = K, e.prototype.modPowInt = F, e.ZERO = c(0), e.ONE = c(1), It.prototype.convert = Pt, It.prototype.revert = Pt, It.prototype.mulTo = Mt, It.prototype.sqrTo = Lt, jt.prototype.convert = kt, jt.prototype.revert = Ft, jt.prototype.reduce = _t, jt.prototype.mulTo = Zt, jt.prototype.sqrTo = zt;
    var Ae = [2, 3, 5, 7, 11, 13, 17, 19, 23, 29, 31, 37, 41, 43, 47, 53, 59, 61, 67, 71, 73, 79, 83, 89, 97, 101, 103, 107, 109, 113, 127, 131, 137, 139, 149, 151, 157, 163, 167, 173, 179, 181, 191, 193, 197, 199, 211, 223, 227, 229, 233, 239, 241, 251, 257, 263, 269, 271, 277, 281, 283, 293, 307, 311, 313, 317, 331, 337, 347, 349, 353, 359, 367, 373, 379, 383, 389, 397, 401, 409, 419, 421, 431, 433, 439, 443, 449, 457, 461, 463, 467, 479, 487, 491, 499, 503, 509, 521, 523, 541, 547, 557, 563, 569, 571, 577, 587, 593, 599, 601, 607, 613, 617, 619, 631, 641, 643, 647, 653, 659, 661, 673, 677, 683, 691, 701, 709, 719, 727, 733, 739, 743, 751, 757, 761, 769, 773, 787, 797, 809, 811, 821, 823, 827, 829, 839, 853, 857, 859, 863, 877, 881, 883, 887, 907, 911, 919, 929, 937, 941, 947, 953, 967, 971, 977, 983, 991, 997],
        Ue = (1 << 26) / Ae[Ae.length - 1];
    e.prototype.chunkSize = $, e.prototype.toRadix = W, e.prototype.fromRadix = Q, e.prototype.fromNumber = X, e.prototype.bitwiseTo = st, e.prototype.changeBit = St, e.prototype.addTo = wt, e.prototype.dMultiply = Nt, e.prototype.dAddOffset = Jt, e.prototype.multiplyLowerTo = Ct, e.prototype.multiplyUpperTo = Ht, e.prototype.modInt = Yt, e.prototype.millerRabin = Xt, e.prototype.clone = _, e.prototype.intValue = z, e.prototype.byteValue = Z, e.prototype.shortValue = G, e.prototype.signum = Y, e.prototype.toByteArray = tt, e.prototype.equals = et, e.prototype.min = it, e.prototype.max = rt, e.prototype.and = ot, e.prototype.or = at, e.prototype.xor = ct, e.prototype.andNot = pt, e.prototype.not = lt, e.prototype.shiftLeft = dt, e.prototype.shiftRight = gt, e.prototype.getLowestSetBit = yt, e.prototype.bitCount = bt, e.prototype.testBit = Tt, e.prototype.setBit = Rt, e.prototype.clearBit = Et, e.prototype.flipBit = Dt, e.prototype.add = xt, e.prototype.subtract = Bt, e.prototype.multiply = Kt, e.prototype.divide = Ut, e.prototype.remainder = Ot, e.prototype.divideAndRemainder = Vt, e.prototype.modPow = Gt, e.prototype.modInverse = Wt, e.prototype.pow = qt, e.prototype.gcd = $t, e.prototype.isProbablePrime = Qt, e.prototype.square = At, te.prototype.init = ee, te.prototype.next = ie;
    var Oe, Ve, Ne, Je = 256;
    if (null == Ve) {
        Ve = new Array, Ne = 0;
        var Ie;
        if (window.crypto && window.crypto.getRandomValues) {
            var Pe = new Uint32Array(256);
            for (window.crypto.getRandomValues(Pe), Ie = 0; Ie < Pe.length; ++Ie) Ve[Ne++] = 255 & Pe[Ie]
        }
        var Me = function (t) {
            if (this.count = this.count || 0, this.count >= 256 || Ne >= Je) return void (window.removeEventListener ? window.removeEventListener("mousemove", Me, !1) : window.detachEvent && window.detachEvent("onmousemove", Me));
            try {
                var e = t.x + t.y;
                Ve[Ne++] = 255 & e, this.count += 1
            } catch (i) {
            }
        };
        window.addEventListener ? window.addEventListener("mousemove", Me, !1) : window.attachEvent && window.attachEvent("onmousemove", Me)
    }
    oe.prototype.nextBytes = ne, ue.prototype.doPublic = fe, ue.prototype.setPublic = ce, ue.prototype.encrypt = pe, ue.prototype.doPrivate = ye, ue.prototype.setPrivate = de, ue.prototype.setPrivateEx = ge, ue.prototype.generate = me, ue.prototype.decrypt = ve,
        function () {
            var t = function (t, r, s) {
                var n = new oe, o = t >> 1;
                this.e = parseInt(r, 16);
                var h = new e(r, 16), a = this, u = function () {
                    var r = function () {
                        if (a.p.compareTo(a.q) <= 0) {
                            var t = a.p;
                            a.p = a.q, a.q = t
                        }
                        var i = a.p.subtract(e.ONE), r = a.q.subtract(e.ONE), n = i.multiply(r);
                        0 == n.gcd(h).compareTo(e.ONE) ? (a.n = a.p.multiply(a.q), a.d = h.modInverse(n), a.dmp1 = a.d.mod(i), a.dmq1 = a.d.mod(r), a.coeff = a.q.modInverse(a.p), setTimeout(function () {
                            s()
                        }, 0)) : setTimeout(u, 0)
                    }, c = function () {
                        a.q = i(), a.q.fromNumberAsync(o, 1, n, function () {
                            a.q.subtract(e.ONE).gcda(h, function (t) {
                                0 == t.compareTo(e.ONE) && a.q.isProbablePrime(10) ? setTimeout(r, 0) : setTimeout(c, 0)
                            })
                        })
                    }, f = function () {
                        a.p = i(), a.p.fromNumberAsync(t - o, 1, n, function () {
                            a.p.subtract(e.ONE).gcda(h, function (t) {
                                0 == t.compareTo(e.ONE) && a.p.isProbablePrime(10) ? setTimeout(c, 0) : setTimeout(f, 0)
                            })
                        })
                    };
                    setTimeout(f, 0)
                };
                setTimeout(u, 0)
            };
            ue.prototype.generateAsync = t;
            var r = function (t, e) {
                var i = this.s < 0 ? this.negate() : this.clone(), r = t.s < 0 ? t.negate() : t.clone();
                if (i.compareTo(r) < 0) {
                    var s = i;
                    i = r, r = s
                }
                var n = i.getLowestSetBit(), o = r.getLowestSetBit();
                if (0 > o) return void e(i);
                o > n && (o = n), o > 0 && (i.rShiftTo(o, i), r.rShiftTo(o, r));
                var h = function () {
                    (n = i.getLowestSetBit()) > 0 && i.rShiftTo(n, i), (n = r.getLowestSetBit()) > 0 && r.rShiftTo(n, r), i.compareTo(r) >= 0 ? (i.subTo(r, i), i.rShiftTo(1, i)) : (r.subTo(i, r), r.rShiftTo(1, r)), i.signum() > 0 ? setTimeout(h, 0) : (o > 0 && r.lShiftTo(o, r), setTimeout(function () {
                        e(r)
                    }, 0))
                };
                setTimeout(h, 10)
            };
            e.prototype.gcda = r;
            var s = function (t, i, r, s) {
                if ("number" == typeof i) if (2 > t) this.fromInt(1); else {
                    this.fromNumber(t, r), this.testBit(t - 1) || this.bitwiseTo(e.ONE.shiftLeft(t - 1), ht, this), this.isEven() && this.dAddOffset(1, 0);
                    var n = this, o = function () {
                        n.dAddOffset(2, 0), n.bitLength() > t && n.subTo(e.ONE.shiftLeft(t - 1), n), n.isProbablePrime(i) ? setTimeout(function () {
                            s()
                        }, 0) : setTimeout(o, 0)
                    };
                    setTimeout(o, 0)
                } else {
                    var h = new Array, a = 7 & t;
                    h.length = (t >> 3) + 1, i.nextBytes(h), a > 0 ? h[0] &= (1 << a) - 1 : h[0] = 0, this.fromString(h, 256)
                }
            };
            e.prototype.fromNumberAsync = s
        }();
    var Le = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/", qe = "=", Ce = Ce || {};
    Ce.env = Ce.env || {};
    var He = Ce, je = Object.prototype, ke = "[object Function]", Fe = ["toString", "valueOf"];
    Ce.env.parseUA = function (t) {
        var e, i = function (t) {
            var e = 0;
            return parseFloat(t.replace(/\./g, function () {
                return 1 == e++ ? "" : "."
            }))
        }, r = navigator, s = {
            ie: 0,
            opera: 0,
            gecko: 0,
            webkit: 0,
            chrome: 0,
            mobile: null,
            air: 0,
            ipad: 0,
            iphone: 0,
            ipod: 0,
            ios: null,
            android: 0,
            webos: 0,
            caja: r && r.cajaVersion,
            secure: !1,
            os: null
        }, n = t || navigator && navigator.userAgent, o = window && window.location, h = o && o.href;
        return s.secure = h && 0 === h.toLowerCase().indexOf("https"), n && (/windows|win32/i.test(n) ? s.os = "windows" : /macintosh/i.test(n) ? s.os = "macintosh" : /rhino/i.test(n) && (s.os = "rhino"), /KHTML/.test(n) && (s.webkit = 1), e = n.match(/AppleWebKit\/([^\s]*)/), e && e[1] && (s.webkit = i(e[1]), / Mobile\//.test(n) ? (s.mobile = "Apple", e = n.match(/OS ([^\s]*)/), e && e[1] && (e = i(e[1].replace("_", "."))), s.ios = e, s.ipad = s.ipod = s.iphone = 0, e = n.match(/iPad|iPod|iPhone/), e && e[0] && (s[e[0].toLowerCase()] = s.ios)) : (e = n.match(/NokiaN[^\/]*|Android \d\.\d|webOS\/\d\.\d/), e && (s.mobile = e[0]), /webOS/.test(n) && (s.mobile = "WebOS", e = n.match(/webOS\/([^\s]*);/), e && e[1] && (s.webos = i(e[1]))), / Android/.test(n) && (s.mobile = "Android", e = n.match(/Android ([^\s]*);/), e && e[1] && (s.android = i(e[1])))), e = n.match(/Chrome\/([^\s]*)/), e && e[1] ? s.chrome = i(e[1]) : (e = n.match(/AdobeAIR\/([^\s]*)/), e && (s.air = e[0]))), s.webkit || (e = n.match(/Opera[\s\/]([^\s]*)/), e && e[1] ? (s.opera = i(e[1]), e = n.match(/Version\/([^\s]*)/), e && e[1] && (s.opera = i(e[1])), e = n.match(/Opera Mini[^;]*/), e && (s.mobile = e[0])) : (e = n.match(/MSIE\s([^;]*)/), e && e[1] ? s.ie = i(e[1]) : (e = n.match(/Gecko\/([^\s]*)/), e && (s.gecko = 1, e = n.match(/rv:([^\s\)]*)/), e && e[1] && (s.gecko = i(e[1]))))))), s
    }, Ce.env.ua = Ce.env.parseUA(), Ce.isFunction = function (t) {
        return "function" == typeof t || je.toString.apply(t) === ke
    }, Ce._IEEnumFix = Ce.env.ua.ie ? function (t, e) {
        var i, r, s;
        for (i = 0; i < Fe.length; i += 1) r = Fe[i], s = e[r], He.isFunction(s) && s != je[r] && (t[r] = s)
    } : function () {
    }, Ce.extend = function (t, e, i) {
        if (!e || !t) throw new Error("extend failed, please check that all dependencies are included.");
        var r, s = function () {
        };
        if (s.prototype = e.prototype, t.prototype = new s, t.prototype.constructor = t, t.superclass = e.prototype, e.prototype.constructor == je.constructor && (e.prototype.constructor = e), i) {
            for (r in i) He.hasOwnProperty(i, r) && (t.prototype[r] = i[r]);
            He._IEEnumFix(t.prototype, i)
        }
    },
    "undefined" != typeof KJUR && KJUR || (KJUR = {}), "undefined" != typeof KJUR.asn1 && KJUR.asn1 || (KJUR.asn1 = {}), KJUR.asn1.ASN1Util = new function () {
        this.integerToByteHex = function (t) {
            var e = t.toString(16);
            return e.length % 2 == 1 && (e = "0" + e), e
        }, this.bigIntToMinTwosComplementsHex = function (t) {
            var i = t.toString(16);
            if ("-" != i.substr(0, 1)) i.length % 2 == 1 ? i = "0" + i : i.match(/^[0-7]/) || (i = "00" + i); else {
                var r = i.substr(1), s = r.length;
                s % 2 == 1 ? s += 1 : i.match(/^[0-7]/) || (s += 2);
                for (var n = "", o = 0; s > o; o++) n += "f";
                var h = new e(n, 16), a = h.xor(t).add(e.ONE);
                i = a.toString(16).replace(/^-/, "")
            }
            return i
        }, this.getPEMStringFromHex = function (t, e) {
            var i = CryptoJS.enc.Hex.parse(t), r = CryptoJS.enc.Base64.stringify(i),
                s = r.replace(/(.{64})/g, "$1\r\n");
            return s = s.replace(/\r\n$/, ""), "-----BEGIN " + e + "-----\r\n" + s + "\r\n-----END " + e + "-----\r\n"
        }
    }, KJUR.asn1.ASN1Object = function () {
        var t = "";
        this.getLengthHexFromValue = function () {
            if ("undefined" == typeof this.hV || null == this.hV) throw"this.hV is null or undefined.";
            if (this.hV.length % 2 == 1) throw"value hex must be even length: n=" + t.length + ",v=" + this.hV;
            var e = this.hV.length / 2, i = e.toString(16);
            if (i.length % 2 == 1 && (i = "0" + i), 128 > e) return i;
            var r = i.length / 2;
            if (r > 15) throw"ASN.1 length too long to represent by 8x: n = " + e.toString(16);
            var s = 128 + r;
            return s.toString(16) + i
        }, this.getEncodedHex = function () {
            return (null == this.hTLV || this.isModified) && (this.hV = this.getFreshValueHex(), this.hL = this.getLengthHexFromValue(), this.hTLV = this.hT + this.hL + this.hV, this.isModified = !1), this.hTLV
        }, this.getValueHex = function () {
            return this.getEncodedHex(), this.hV
        }, this.getFreshValueHex = function () {
            return ""
        }
    }, KJUR.asn1.DERAbstractString = function (t) {
        KJUR.asn1.DERAbstractString.superclass.constructor.call(this);
        this.getString = function () {
            return this.s
        }, this.setString = function (t) {
            this.hTLV = null, this.isModified = !0, this.s = t, this.hV = stohex(this.s)
        }, this.setStringHex = function (t) {
            this.hTLV = null, this.isModified = !0, this.s = null, this.hV = t
        }, this.getFreshValueHex = function () {
            return this.hV
        }, "undefined" != typeof t && ("undefined" != typeof t.str ? this.setString(t.str) : "undefined" != typeof t.hex && this.setStringHex(t.hex))
    }, Ce.extend(KJUR.asn1.DERAbstractString, KJUR.asn1.ASN1Object), KJUR.asn1.DERAbstractTime = function (t) {
        KJUR.asn1.DERAbstractTime.superclass.constructor.call(this);
        this.localDateToUTC = function (t) {
            utc = t.getTime() + 6e4 * t.getTimezoneOffset();
            var e = new Date(utc);
            return e
        }, this.formatDate = function (t, e) {
            var i = this.zeroPadding, r = this.localDateToUTC(t), s = String(r.getFullYear());
            "utc" == e && (s = s.substr(2, 2));
            var n = i(String(r.getMonth() + 1), 2), o = i(String(r.getDate()), 2), h = i(String(r.getHours()), 2),
                a = i(String(r.getMinutes()), 2), u = i(String(r.getSeconds()), 2);
            return s + n + o + h + a + u + "Z"
        }, this.zeroPadding = function (t, e) {
            return t.length >= e ? t : new Array(e - t.length + 1).join("0") + t
        }, this.getString = function () {
            return this.s
        }, this.setString = function (t) {
            this.hTLV = null, this.isModified = !0, this.s = t, this.hV = stohex(this.s)
        }, this.setByDateValue = function (t, e, i, r, s, n) {
            var o = new Date(Date.UTC(t, e - 1, i, r, s, n, 0));
            this.setByDate(o)
        }, this.getFreshValueHex = function () {
            return this.hV
        }
    }, Ce.extend(KJUR.asn1.DERAbstractTime, KJUR.asn1.ASN1Object), KJUR.asn1.DERAbstractStructured = function (t) {
        KJUR.asn1.DERAbstractString.superclass.constructor.call(this);
        this.setByASN1ObjectArray = function (t) {
            this.hTLV = null, this.isModified = !0, this.asn1Array = t
        }, this.appendASN1Object = function (t) {
            this.hTLV = null, this.isModified = !0, this.asn1Array.push(t)
        }, this.asn1Array = new Array, "undefined" != typeof t && "undefined" != typeof t.array && (this.asn1Array = t.array)
    }, Ce.extend(KJUR.asn1.DERAbstractStructured, KJUR.asn1.ASN1Object), KJUR.asn1.DERBoolean = function () {
        KJUR.asn1.DERBoolean.superclass.constructor.call(this), this.hT = "01", this.hTLV = "0101ff"
    }, Ce.extend(KJUR.asn1.DERBoolean, KJUR.asn1.ASN1Object), KJUR.asn1.DERInteger = function (t) {
        KJUR.asn1.DERInteger.superclass.constructor.call(this), this.hT = "02", this.setByBigInteger = function (t) {
            this.hTLV = null, this.isModified = !0, this.hV = KJUR.asn1.ASN1Util.bigIntToMinTwosComplementsHex(t)
        }, this.setByInteger = function (t) {
            var i = new e(String(t), 10);
            this.setByBigInteger(i)
        }, this.setValueHex = function (t) {
            this.hV = t
        }, this.getFreshValueHex = function () {
            return this.hV
        }, "undefined" != typeof t && ("undefined" != typeof t.bigint ? this.setByBigInteger(t.bigint) : "undefined" != typeof t["int"] ? this.setByInteger(t["int"]) : "undefined" != typeof t.hex && this.setValueHex(t.hex))
    }, Ce.extend(KJUR.asn1.DERInteger, KJUR.asn1.ASN1Object), KJUR.asn1.DERBitString = function (t) {
        KJUR.asn1.DERBitString.superclass.constructor.call(this), this.hT = "03", this.setHexValueIncludingUnusedBits = function (t) {
            this.hTLV = null, this.isModified = !0, this.hV = t
        }, this.setUnusedBitsAndHexValue = function (t, e) {
            if (0 > t || t > 7) throw"unused bits shall be from 0 to 7: u = " + t;
            var i = "0" + t;
            this.hTLV = null, this.isModified = !0, this.hV = i + e
        }, this.setByBinaryString = function (t) {
            t = t.replace(/0+$/, "");
            var e = 8 - t.length % 8;
            8 == e && (e = 0);
            for (var i = 0; e >= i; i++) t += "0";
            for (var r = "", i = 0; i < t.length - 1; i += 8) {
                var s = t.substr(i, 8), n = parseInt(s, 2).toString(16);
                1 == n.length && (n = "0" + n), r += n
            }
            this.hTLV = null, this.isModified = !0, this.hV = "0" + e + r
        }, this.setByBooleanArray = function (t) {
            for (var e = "", i = 0; i < t.length; i++) e += 1 == t[i] ? "1" : "0";
            this.setByBinaryString(e)
        }, this.newFalseArray = function (t) {
            for (var e = new Array(t), i = 0; t > i; i++) e[i] = !1;
            return e
        }, this.getFreshValueHex = function () {
            return this.hV
        }, "undefined" != typeof t && ("undefined" != typeof t.hex ? this.setHexValueIncludingUnusedBits(t.hex) : "undefined" != typeof t.bin ? this.setByBinaryString(t.bin) : "undefined" != typeof t.array && this.setByBooleanArray(t.array))
    }, Ce.extend(KJUR.asn1.DERBitString, KJUR.asn1.ASN1Object), KJUR.asn1.DEROctetString = function (t) {
        KJUR.asn1.DEROctetString.superclass.constructor.call(this, t), this.hT = "04"
    }, Ce.extend(KJUR.asn1.DEROctetString, KJUR.asn1.DERAbstractString), KJUR.asn1.DERNull = function () {
        KJUR.asn1.DERNull.superclass.constructor.call(this), this.hT = "05", this.hTLV = "0500"
    }, Ce.extend(KJUR.asn1.DERNull, KJUR.asn1.ASN1Object), KJUR.asn1.DERObjectIdentifier = function (t) {
        var i = function (t) {
            var e = t.toString(16);
            return 1 == e.length && (e = "0" + e), e
        }, r = function (t) {
            var r = "", s = new e(t, 10), n = s.toString(2), o = 7 - n.length % 7;
            7 == o && (o = 0);
            for (var h = "", a = 0; o > a; a++) h += "0";
            n = h + n;
            for (var a = 0; a < n.length - 1; a += 7) {
                var u = n.substr(a, 7);
                a != n.length - 7 && (u = "1" + u), r += i(parseInt(u, 2))
            }
            return r
        };
        KJUR.asn1.DERObjectIdentifier.superclass.constructor.call(this), this.hT = "06", this.setValueHex = function (t) {
            this.hTLV = null, this.isModified = !0, this.s = null, this.hV = t
        }, this.setValueOidString = function (t) {
            if (!t.match(/^[0-9.]+$/)) throw"malformed oid string: " + t;
            var e = "", s = t.split("."), n = 40 * parseInt(s[0]) + parseInt(s[1]);
            e += i(n), s.splice(0, 2);
            for (var o = 0; o < s.length; o++) e += r(s[o]);
            this.hTLV = null, this.isModified = !0, this.s = null, this.hV = e
        }, this.setValueName = function (t) {
            if ("undefined" == typeof KJUR.asn1.x509.OID.name2oidList[t]) throw"DERObjectIdentifier oidName undefined: " + t;
            var e = KJUR.asn1.x509.OID.name2oidList[t];
            this.setValueOidString(e)
        }, this.getFreshValueHex = function () {
            return this.hV
        }, "undefined" != typeof t && ("undefined" != typeof t.oid ? this.setValueOidString(t.oid) : "undefined" != typeof t.hex ? this.setValueHex(t.hex) : "undefined" != typeof t.name && this.setValueName(t.name))
    }, Ce.extend(KJUR.asn1.DERObjectIdentifier, KJUR.asn1.ASN1Object), KJUR.asn1.DERUTF8String = function (t) {
        KJUR.asn1.DERUTF8String.superclass.constructor.call(this, t), this.hT = "0c"
    }, Ce.extend(KJUR.asn1.DERUTF8String, KJUR.asn1.DERAbstractString), KJUR.asn1.DERNumericString = function (t) {
        KJUR.asn1.DERNumericString.superclass.constructor.call(this, t), this.hT = "12"
    }, Ce.extend(KJUR.asn1.DERNumericString, KJUR.asn1.DERAbstractString), KJUR.asn1.DERPrintableString = function (t) {
        KJUR.asn1.DERPrintableString.superclass.constructor.call(this, t), this.hT = "13"
    }, Ce.extend(KJUR.asn1.DERPrintableString, KJUR.asn1.DERAbstractString), KJUR.asn1.DERTeletexString = function (t) {
        KJUR.asn1.DERTeletexString.superclass.constructor.call(this, t), this.hT = "14"
    }, Ce.extend(KJUR.asn1.DERTeletexString, KJUR.asn1.DERAbstractString), KJUR.asn1.DERIA5String = function (t) {
        KJUR.asn1.DERIA5String.superclass.constructor.call(this, t), this.hT = "16"
    }, Ce.extend(KJUR.asn1.DERIA5String, KJUR.asn1.DERAbstractString), KJUR.asn1.DERUTCTime = function (t) {
        KJUR.asn1.DERUTCTime.superclass.constructor.call(this, t), this.hT = "17", this.setByDate = function (t) {
            this.hTLV = null, this.isModified = !0, this.date = t, this.s = this.formatDate(this.date, "utc"), this.hV = stohex(this.s)
        }, "undefined" != typeof t && ("undefined" != typeof t.str ? this.setString(t.str) : "undefined" != typeof t.hex ? this.setStringHex(t.hex) : "undefined" != typeof t.date && this.setByDate(t.date))
    }, Ce.extend(KJUR.asn1.DERUTCTime, KJUR.asn1.DERAbstractTime), KJUR.asn1.DERGeneralizedTime = function (t) {
        KJUR.asn1.DERGeneralizedTime.superclass.constructor.call(this, t), this.hT = "18", this.setByDate = function (t) {
            this.hTLV = null, this.isModified = !0, this.date = t, this.s = this.formatDate(this.date, "gen"), this.hV = stohex(this.s)
        }, "undefined" != typeof t && ("undefined" != typeof t.str ? this.setString(t.str) : "undefined" != typeof t.hex ? this.setStringHex(t.hex) : "undefined" != typeof t.date && this.setByDate(t.date))
    }, Ce.extend(KJUR.asn1.DERGeneralizedTime, KJUR.asn1.DERAbstractTime), KJUR.asn1.DERSequence = function (t) {
        KJUR.asn1.DERSequence.superclass.constructor.call(this, t), this.hT = "30", this.getFreshValueHex = function () {
            for (var t = "", e = 0; e < this.asn1Array.length; e++) {
                var i = this.asn1Array[e];
                t += i.getEncodedHex()
            }
            return this.hV = t, this.hV
        }
    }, Ce.extend(KJUR.asn1.DERSequence, KJUR.asn1.DERAbstractStructured), KJUR.asn1.DERSet = function (t) {
        KJUR.asn1.DERSet.superclass.constructor.call(this, t), this.hT = "31", this.getFreshValueHex = function () {
            for (var t = new Array, e = 0; e < this.asn1Array.length; e++) {
                var i = this.asn1Array[e];
                t.push(i.getEncodedHex())
            }
            return t.sort(), this.hV = t.join(""), this.hV
        }
    }, Ce.extend(KJUR.asn1.DERSet, KJUR.asn1.DERAbstractStructured), KJUR.asn1.DERTaggedObject = function (t) {
        KJUR.asn1.DERTaggedObject.superclass.constructor.call(this), this.hT = "a0", this.hV = "", this.isExplicit = !0, this.asn1Object = null, this.setASN1Object = function (t, e, i) {
            this.hT = e, this.isExplicit = t, this.asn1Object = i, this.isExplicit ? (this.hV = this.asn1Object.getEncodedHex(), this.hTLV = null, this.isModified = !0) : (this.hV = null, this.hTLV = i.getEncodedHex(), this.hTLV = this.hTLV.replace(/^../, e), this.isModified = !1)
        }, this.getFreshValueHex = function () {
            return this.hV
        }, "undefined" != typeof t && ("undefined" != typeof t.tag && (this.hT = t.tag), "undefined" != typeof t.explicit && (this.isExplicit = t.explicit), "undefined" != typeof t.obj && (this.asn1Object = t.obj, this.setASN1Object(this.isExplicit, this.hT, this.asn1Object)))
    }, Ce.extend(KJUR.asn1.DERTaggedObject, KJUR.asn1.ASN1Object),
        function (t) {
            "use strict";
            var e, i = {};
            i.decode = function (i) {
                var r;
                if (e === t) {
                    var s = "0123456789ABCDEF", n = " \f\n\r	 \u2028\u2029";
                    for (e = [], r = 0; 16 > r; ++r) e[s.charAt(r)] = r;
                    for (s = s.toLowerCase(), r = 10; 16 > r; ++r) e[s.charAt(r)] = r;
                    for (r = 0; r < n.length; ++r) e[n.charAt(r)] = -1
                }
                var o = [], h = 0, a = 0;
                for (r = 0; r < i.length; ++r) {
                    var u = i.charAt(r);
                    if ("=" == u) break;
                    if (u = e[u], -1 != u) {
                        if (u === t) throw"Illegal character at offset " + r;
                        h |= u, ++a >= 2 ? (o[o.length] = h, h = 0, a = 0) : h <<= 4
                    }
                }
                if (a) throw"Hex encoding incomplete: 4 bits missing";
                return o
            }, window.Hex = i
        }(),
        function (t) {
            "use strict";
            var e, i = {};
            i.decode = function (i) {
                var r;
                if (e === t) {
                    var s = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",
                        n = "= \f\n\r	 \u2028\u2029";
                    for (e = [], r = 0; 64 > r; ++r) e[s.charAt(r)] = r;
                    for (r = 0; r < n.length; ++r) e[n.charAt(r)] = -1
                }
                var o = [], h = 0, a = 0;
                for (r = 0; r < i.length; ++r) {
                    var u = i.charAt(r);
                    if ("=" == u) break;
                    if (u = e[u], -1 != u) {
                        if (u === t) throw"Illegal character at offset " + r;
                        h |= u, ++a >= 4 ? (o[o.length] = h >> 16, o[o.length] = h >> 8 & 255, o[o.length] = 255 & h, h = 0, a = 0) : h <<= 6
                    }
                }
                switch (a) {
                    case 1:
                        throw"Base64 encoding incomplete: at least 2 bits missing";
                    case 2:
                        o[o.length] = h >> 10;
                        break;
                    case 3:
                        o[o.length] = h >> 16, o[o.length] = h >> 8 & 255
                }
                return o
            }, i.re = /-----BEGIN [^-]+-----([A-Za-z0-9+\/=\s]+)-----END [^-]+-----|begin-base64[^\n]+\n([A-Za-z0-9+\/=\s]+)====/, i.unarmor = function (t) {
                var e = i.re.exec(t);
                if (e) if (e[1]) t = e[1]; else {
                    if (!e[2]) throw"RegExp out of sync";
                    t = e[2]
                }
                return i.decode(t)
            }, window.Base64 = i
        }(),
        function (t) {
            "use strict";

            function e(t, i) {
                t instanceof e ? (this.enc = t.enc, this.pos = t.pos) : (this.enc = t, this.pos = i)
            }

            function i(t, e, i, r, s) {
                this.stream = t, this.header = e, this.length = i, this.tag = r, this.sub = s
            }

            var r = 100, s = "…", n = {
                tag: function (t, e) {
                    var i = document.createElement(t);
                    return i.className = e, i
                }, text: function (t) {
                    return document.createTextNode(t)
                }
            };
            e.prototype.get = function (e) {
                if (e === t && (e = this.pos++), e >= this.enc.length) throw"Requesting byte offset " + e + " on a stream of length " + this.enc.length;
                return this.enc[e]
            }, e.prototype.hexDigits = "0123456789ABCDEF", e.prototype.hexByte = function (t) {
                return this.hexDigits.charAt(t >> 4 & 15) + this.hexDigits.charAt(15 & t)
            }, e.prototype.hexDump = function (t, e, i) {
                for (var r = "", s = t; e > s; ++s) if (r += this.hexByte(this.get(s)), i !== !0) switch (15 & s) {
                    case 7:
                        r += "  ";
                        break;
                    case 15:
                        r += "\n";
                        break;
                    default:
                        r += " "
                }
                return r
            }, e.prototype.parseStringISO = function (t, e) {
                for (var i = "", r = t; e > r; ++r) i += String.fromCharCode(this.get(r));
                return i
            }, e.prototype.parseStringUTF = function (t, e) {
                for (var i = "", r = t; e > r;) {
                    var s = this.get(r++);
                    i += 128 > s ? String.fromCharCode(s) : s > 191 && 224 > s ? String.fromCharCode((31 & s) << 6 | 63 & this.get(r++)) : String.fromCharCode((15 & s) << 12 | (63 & this.get(r++)) << 6 | 63 & this.get(r++))
                }
                return i
            }, e.prototype.parseStringBMP = function (t, e) {
                for (var i = "", r = t; e > r; r += 2) {
                    var s = this.get(r), n = this.get(r + 1);
                    i += String.fromCharCode((s << 8) + n)
                }
                return i
            }, e.prototype.reTime = /^((?:1[89]|2\d)?\d\d)(0[1-9]|1[0-2])(0[1-9]|[12]\d|3[01])([01]\d|2[0-3])(?:([0-5]\d)(?:([0-5]\d)(?:[.,](\d{1,3}))?)?)?(Z|[-+](?:[0]\d|1[0-2])([0-5]\d)?)?$/, e.prototype.parseTime = function (t, e) {
                var i = this.parseStringISO(t, e), r = this.reTime.exec(i);
                return r ? (i = r[1] + "-" + r[2] + "-" + r[3] + " " + r[4], r[5] && (i += ":" + r[5], r[6] && (i += ":" + r[6], r[7] && (i += "." + r[7]))), r[8] && (i += " UTC", "Z" != r[8] && (i += r[8], r[9] && (i += ":" + r[9]))), i) : "Unrecognized time: " + i
            }, e.prototype.parseInteger = function (t, e) {
                var i = e - t;
                if (i > 4) {
                    i <<= 3;
                    var r = this.get(t);
                    if (0 === r) i -= 8; else for (; 128 > r;) r <<= 1, --i;
                    return "(" + i + " bit)"
                }
                for (var s = 0, n = t; e > n; ++n) s = s << 8 | this.get(n);
                return s
            }, e.prototype.parseBitString = function (t, e) {
                var i = this.get(t), r = (e - t - 1 << 3) - i, s = "(" + r + " bit)";
                if (20 >= r) {
                    var n = i;
                    s += " ";
                    for (var o = e - 1; o > t; --o) {
                        for (var h = this.get(o), a = n; 8 > a; ++a) s += h >> a & 1 ? "1" : "0";
                        n = 0
                    }
                }
                return s
            }, e.prototype.parseOctetString = function (t, e) {
                var i = e - t, n = "(" + i + " byte) ";
                i > r && (e = t + r);
                for (var o = t; e > o; ++o) n += this.hexByte(this.get(o));
                return i > r && (n += s), n
            }, e.prototype.parseOID = function (t, e) {
                for (var i = "", r = 0, s = 0, n = t; e > n; ++n) {
                    var o = this.get(n);
                    if (r = r << 7 | 127 & o, s += 7, !(128 & o)) {
                        if ("" === i) {
                            var h = 80 > r ? 40 > r ? 0 : 1 : 2;
                            i = h + "." + (r - 40 * h)
                        } else i += "." + (s >= 31 ? "bigint" : r);
                        r = s = 0
                    }
                }
                return i
            }, i.prototype.typeName = function () {
                if (this.tag === t) return "unknown";
                var e = this.tag >> 6, i = (this.tag >> 5 & 1, 31 & this.tag);
                switch (e) {
                    case 0:
                        switch (i) {
                            case 0:
                                return "EOC";
                            case 1:
                                return "BOOLEAN";
                            case 2:
                                return "INTEGER";
                            case 3:
                                return "BIT_STRING";
                            case 4:
                                return "OCTET_STRING";
                            case 5:
                                return "NULL";
                            case 6:
                                return "OBJECT_IDENTIFIER";
                            case 7:
                                return "ObjectDescriptor";
                            case 8:
                                return "EXTERNAL";
                            case 9:
                                return "REAL";
                            case 10:
                                return "ENUMERATED";
                            case 11:
                                return "EMBEDDED_PDV";
                            case 12:
                                return "UTF8String";
                            case 16:
                                return "SEQUENCE";
                            case 17:
                                return "SET";
                            case 18:
                                return "NumericString";
                            case 19:
                                return "PrintableString";
                            case 20:
                                return "TeletexString";
                            case 21:
                                return "VideotexString";
                            case 22:
                                return "IA5String";
                            case 23:
                                return "UTCTime";
                            case 24:
                                return "GeneralizedTime";
                            case 25:
                                return "GraphicString";
                            case 26:
                                return "VisibleString";
                            case 27:
                                return "GeneralString";
                            case 28:
                                return "UniversalString";
                            case 30:
                                return "BMPString";
                            default:
                                return "Universal_" + i.toString(16)
                        }
                    case 1:
                        return "Application_" + i.toString(16);
                    case 2:
                        return "[" + i + "]";
                    case 3:
                        return "Private_" + i.toString(16)
                }
            }, i.prototype.reSeemsASCII = /^[ -~]+$/, i.prototype.content = function () {
                if (this.tag === t) return null;
                var e = this.tag >> 6, i = 31 & this.tag, n = this.posContent(), o = Math.abs(this.length);
                if (0 !== e) {
                    if (null !== this.sub) return "(" + this.sub.length + " elem)";
                    var h = this.stream.parseStringISO(n, n + Math.min(o, r));
                    return this.reSeemsASCII.test(h) ? h.substring(0, 2 * r) + (h.length > 2 * r ? s : "") : this.stream.parseOctetString(n, n + o)
                }
                switch (i) {
                    case 1:
                        return 0 === this.stream.get(n) ? "false" : "true";
                    case 2:
                        return this.stream.parseInteger(n, n + o);
                    case 3:
                        return this.sub ? "(" + this.sub.length + " elem)" : this.stream.parseBitString(n, n + o);
                    case 4:
                        return this.sub ? "(" + this.sub.length + " elem)" : this.stream.parseOctetString(n, n + o);
                    case 6:
                        return this.stream.parseOID(n, n + o);
                    case 16:
                    case 17:
                        return "(" + this.sub.length + " elem)";
                    case 12:
                        return this.stream.parseStringUTF(n, n + o);
                    case 18:
                    case 19:
                    case 20:
                    case 21:
                    case 22:
                    case 26:
                        return this.stream.parseStringISO(n, n + o);
                    case 30:
                        return this.stream.parseStringBMP(n, n + o);
                    case 23:
                    case 24:
                        return this.stream.parseTime(n, n + o)
                }
                return null
            }, i.prototype.toString = function () {
                return this.typeName() + "@" + this.stream.pos + "[header:" + this.header + ",length:" + this.length + ",sub:" + (null === this.sub ? "null" : this.sub.length) + "]"
            }, i.prototype.print = function (e) {
                if (e === t && (e = ""), document.writeln(e + this), null !== this.sub) {
                    e += "  ";
                    for (var i = 0, r = this.sub.length; r > i; ++i) this.sub[i].print(e)
                }
            }, i.prototype.toPrettyString = function (e) {
                e === t && (e = "");
                var i = e + this.typeName() + " @" + this.stream.pos;
                if (this.length >= 0 && (i += "+"), i += this.length, 32 & this.tag ? i += " (constructed)" : 3 != this.tag && 4 != this.tag || null === this.sub || (i += " (encapsulates)"), i += "\n", null !== this.sub) {
                    e += "  ";
                    for (var r = 0, s = this.sub.length; s > r; ++r) i += this.sub[r].toPrettyString(e)
                }
                return i
            }, i.prototype.toDOM = function () {
                var t = n.tag("div", "node");
                t.asn1 = this;
                var e = n.tag("div", "head"), i = this.typeName().replace(/_/g, " ");
                e.innerHTML = i;
                var r = this.content();
                if (null !== r) {
                    r = String(r).replace(/</g, "&lt;");
                    var s = n.tag("span", "preview");
                    s.appendChild(n.text(r)), e.appendChild(s)
                }
                t.appendChild(e), this.node = t, this.head = e;
                var o = n.tag("div", "value");
                if (i = "Offset: " + this.stream.pos + "<br/>", i += "Length: " + this.header + "+", i += this.length >= 0 ? this.length : -this.length + " (undefined)", 32 & this.tag ? i += "<br/>(constructed)" : 3 != this.tag && 4 != this.tag || null === this.sub || (i += "<br/>(encapsulates)"), null !== r && (i += "<br/>Value:<br/><b>" + r + "</b>", "object" == typeof oids && 6 == this.tag)) {
                    var h = oids[r];
                    h && (h.d && (i += "<br/>" + h.d), h.c && (i += "<br/>" + h.c), h.w && (i += "<br/>(warning!)"))
                }
                o.innerHTML = i, t.appendChild(o);
                var a = n.tag("div", "sub");
                if (null !== this.sub) for (var u = 0, c = this.sub.length; c > u; ++u) a.appendChild(this.sub[u].toDOM());
                return t.appendChild(a), e.onclick = function () {
                    t.className = "node collapsed" == t.className ? "node" : "node collapsed"
                }, t
            }, i.prototype.posStart = function () {
                return this.stream.pos
            }, i.prototype.posContent = function () {
                return this.stream.pos + this.header
            }, i.prototype.posEnd = function () {
                return this.stream.pos + this.header + Math.abs(this.length)
            }, i.prototype.fakeHover = function (t) {
                this.node.className += " hover", t && (this.head.className += " hover")
            }, i.prototype.fakeOut = function (t) {
                var e = / ?hover/;
                this.node.className = this.node.className.replace(e, ""), t && (this.head.className = this.head.className.replace(e, ""))
            }, i.prototype.toHexDOM_sub = function (t, e, i, r, s) {
                if (!(r >= s)) {
                    var o = n.tag("span", e);
                    o.appendChild(n.text(i.hexDump(r, s))), t.appendChild(o)
                }
            }, i.prototype.toHexDOM = function (e) {
                var i = n.tag("span", "hex");
                if (e === t && (e = i), this.head.hexNode = i, this.head.onmouseover = function () {
                    this.hexNode.className = "hexCurrent"
                }, this.head.onmouseout = function () {
                    this.hexNode.className = "hex"
                }, i.asn1 = this, i.onmouseover = function () {
                    var t = !e.selected;
                    t && (e.selected = this.asn1, this.className = "hexCurrent"), this.asn1.fakeHover(t)
                }, i.onmouseout = function () {
                    var t = e.selected == this.asn1;
                    this.asn1.fakeOut(t), t && (e.selected = null, this.className = "hex")
                }, this.toHexDOM_sub(i, "tag", this.stream, this.posStart(), this.posStart() + 1), this.toHexDOM_sub(i, this.length >= 0 ? "dlen" : "ulen", this.stream, this.posStart() + 1, this.posContent()), null === this.sub) i.appendChild(n.text(this.stream.hexDump(this.posContent(), this.posEnd()))); else if (this.sub.length > 0) {
                    var r = this.sub[0], s = this.sub[this.sub.length - 1];
                    this.toHexDOM_sub(i, "intro", this.stream, this.posContent(), r.posStart());
                    for (var o = 0, h = this.sub.length; h > o; ++o) i.appendChild(this.sub[o].toHexDOM(e));
                    this.toHexDOM_sub(i, "outro", this.stream, s.posEnd(), this.posEnd())
                }
                return i
            }, i.prototype.toHexString = function (t) {
                return this.stream.hexDump(this.posStart(), this.posEnd(), !0)
            }, i.decodeLength = function (t) {
                var e = t.get(), i = 127 & e;
                if (i == e) return i;
                if (i > 3) throw"Length over 24 bits not supported at position " + (t.pos - 1);
                if (0 === i) return -1;
                e = 0;
                for (var r = 0; i > r; ++r) e = e << 8 | t.get();
                return e
            }, i.hasContent = function (t, r, s) {
                if (32 & t) return !0;
                if (3 > t || t > 4) return !1;
                var n = new e(s);
                3 == t && n.get();
                var o = n.get();
                if (o >> 6 & 1) return !1;
                try {
                    var h = i.decodeLength(n);
                    return n.pos - s.pos + h == r
                } catch (a) {
                    return !1
                }
            }, i.decode = function (t) {
                t instanceof e || (t = new e(t, 0));
                var r = new e(t), s = t.get(), n = i.decodeLength(t), o = t.pos - r.pos, h = null;
                if (i.hasContent(s, n, t)) {
                    var a = t.pos;
                    if (3 == s && t.get(), h = [], n >= 0) {
                        for (var u = a + n; t.pos < u;) h[h.length] = i.decode(t);
                        if (t.pos != u) throw"Content size is not correct for container starting at offset " + a
                    } else try {
                        for (; ;) {
                            var c = i.decode(t);
                            if (0 === c.tag) break;
                            h[h.length] = c
                        }
                        n = a - t.pos
                    } catch (f) {
                        throw"Exception while decoding undefined length content: " + f
                    }
                } else t.pos += n;
                return new i(r, o, n, s, h)
            }, i.test = function () {
                for (var t = [{value: [39], expected: 39}, {
                    value: [129, 201],
                    expected: 201
                }, {value: [131, 254, 220, 186], expected: 16702650}], r = 0, s = t.length; s > r; ++r) {
                    var n = new e(t[r].value, 0), o = i.decodeLength(n);
                    o != t[r].expected && document.write("In test[" + r + "] expected " + t[r].expected + " got " + o + "\n")
                }
            }, window.ASN1 = i
        }(), ASN1.prototype.getHexStringValue = function () {
        var t = this.toHexString(), e = 2 * this.header, i = 2 * this.length;
        return t.substr(e, i)
    }, ue.prototype.parseKey = function (t) {
        try {
            var e = 0, i = 0, r = /^\s*(?:[0-9A-Fa-f][0-9A-Fa-f]\s*)+$/,
                s = r.test(t) ? Hex.decode(t) : Base64.unarmor(t), n = ASN1.decode(s);
            if (3 === n.sub.length && (n = n.sub[2].sub[0]), 9 === n.sub.length) {
                e = n.sub[1].getHexStringValue(), this.n = he(e, 16), i = n.sub[2].getHexStringValue(), this.e = parseInt(i, 16);
                var o = n.sub[3].getHexStringValue();
                this.d = he(o, 16);
                var h = n.sub[4].getHexStringValue();
                this.p = he(h, 16);
                var a = n.sub[5].getHexStringValue();
                this.q = he(a, 16);
                var u = n.sub[6].getHexStringValue();
                this.dmp1 = he(u, 16);
                var c = n.sub[7].getHexStringValue();
                this.dmq1 = he(c, 16);
                var f = n.sub[8].getHexStringValue();
                this.coeff = he(f, 16)
            } else {
                if (2 !== n.sub.length) return !1;
                var p = n.sub[1], l = p.sub[0];
                e = l.sub[0].getHexStringValue(), this.n = he(e, 16), i = l.sub[1].getHexStringValue(), this.e = parseInt(i, 16)
            }
            return !0
        } catch (d) {
            return !1
        }
    }, ue.prototype.getPrivateBaseKey = function () {
        var t = {array: [new KJUR.asn1.DERInteger({"int": 0}), new KJUR.asn1.DERInteger({bigint: this.n}), new KJUR.asn1.DERInteger({"int": this.e}), new KJUR.asn1.DERInteger({bigint: this.d}), new KJUR.asn1.DERInteger({bigint: this.p}), new KJUR.asn1.DERInteger({bigint: this.q}), new KJUR.asn1.DERInteger({bigint: this.dmp1}), new KJUR.asn1.DERInteger({bigint: this.dmq1}), new KJUR.asn1.DERInteger({bigint: this.coeff})]},
            e = new KJUR.asn1.DERSequence(t);
        return e.getEncodedHex()
    }, ue.prototype.getPrivateBaseKeyB64 = function () {
        return be(this.getPrivateBaseKey())
    }, ue.prototype.getPublicBaseKey = function () {
        var t = {array: [new KJUR.asn1.DERObjectIdentifier({oid: "1.2.840.113549.1.1.1"}), new KJUR.asn1.DERNull]},
            e = new KJUR.asn1.DERSequence(t);
        t = {array: [new KJUR.asn1.DERInteger({bigint: this.n}), new KJUR.asn1.DERInteger({"int": this.e})]};
        var i = new KJUR.asn1.DERSequence(t);
        t = {hex: "00" + i.getEncodedHex()};
        var r = new KJUR.asn1.DERBitString(t);
        t = {array: [e, r]};
        var s = new KJUR.asn1.DERSequence(t);
        return s.getEncodedHex()
    }, ue.prototype.getPublicBaseKeyB64 = function () {
        return be(this.getPublicBaseKey())
    }, ue.prototype.wordwrap = function (t, e) {
        if (e = e || 64, !t) return t;
        var i = "(.{1," + e + "})( +|$\n?)|(.{1," + e + "})";
        return t.match(RegExp(i, "g")).join("\n")
    }, ue.prototype.getPrivateKey = function () {
        var t = "-----BEGIN RSA PRIVATE KEY-----\n";
        return t += this.wordwrap(this.getPrivateBaseKeyB64()) + "\n", t += "-----END RSA PRIVATE KEY-----"
    }, ue.prototype.getPublicKey = function () {
        var t = "-----BEGIN PUBLIC KEY-----\n";
        return t += this.wordwrap(this.getPublicBaseKeyB64()) + "\n", t += "-----END PUBLIC KEY-----"
    }, ue.prototype.hasPublicKeyProperty = function (t) {
        return t = t || {}, t.hasOwnProperty("n") && t.hasOwnProperty("e")
    }, ue.prototype.hasPrivateKeyProperty = function (t) {
        return t = t || {}, t.hasOwnProperty("n") && t.hasOwnProperty("e") && t.hasOwnProperty("d") && t.hasOwnProperty("p") && t.hasOwnProperty("q") && t.hasOwnProperty("dmp1") && t.hasOwnProperty("dmq1") && t.hasOwnProperty("coeff")
    }, ue.prototype.parsePropertiesFrom = function (t) {
        this.n = t.n, this.e = t.e, t.hasOwnProperty("d") && (this.d = t.d, this.p = t.p, this.q = t.q, this.dmp1 = t.dmp1, this.dmq1 = t.dmq1, this.coeff = t.coeff)
    };
    var _e = function (t) {
        ue.call(this), t && ("string" == typeof t ? this.parseKey(t) : (this.hasPrivateKeyProperty(t) || this.hasPublicKeyProperty(t)) && this.parsePropertiesFrom(t))
    };
    _e.prototype = new ue, _e.prototype.constructor = _e;
    var ze = function (t) {
        t = t || {}, this.default_key_size = parseInt(t.default_key_size) || 1024, this.default_public_exponent = t.default_public_exponent || "010001", this.log = t.log || !1, this.key = null
    };
    ze.prototype.setKey = function (t) {
        this.log && this.key && console.warn("A key was already set, overriding existing."), this.key = new _e(t)
    }, ze.prototype.setPrivateKey = function (t) {
        this.setKey(t)
    }, ze.prototype.setPublicKey = function (t) {
        this.setKey(t)
    }, ze.prototype.decrypt = function (t) {
        try {
            return this.getKey().decrypt(Te(t))
        } catch (e) {
            return !1
        }
    }, ze.prototype.encrypt = function (t) {
        try {
            return be(this.getKey().encrypt(t))
        } catch (e) {
            return !1
        }
    }, ze.prototype.getKey = function (t) {
        if (!this.key) {
            if (this.key = new _e, t && "[object Function]" === {}.toString.call(t)) return void this.key.generateAsync(this.default_key_size, this.default_public_exponent, t);
            this.key.generate(this.default_key_size, this.default_public_exponent)
        }
        return this.key
    }, ze.prototype.getPrivateKey = function () {
        return this.getKey().getPrivateKey()
    }, ze.prototype.getPrivateKeyB64 = function () {
        return this.getKey().getPrivateBaseKeyB64()
    }, ze.prototype.getPublicKey = function () {
        return this.getKey().getPublicKey()
    }, ze.prototype.getPublicKeyB64 = function () {
        return this.getKey().getPublicBaseKeyB64()
    }, ze.version = "2.3.1", t.JSEncrypt = ze
});

function encrypt(msg) {
    var encrypt = new JSEncrypt();
    encrypt.setPublicKey('-----BEGIN PUBLIC KEY-----MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQCrWVnSOu9m7O8X3taQGXzVlB9B0Gw1Mvbc0MxKZOxT8SlQVB1Krpu3KfuoxgGE1TikX/JkYJf+D4tTqENqk5pnSZc784gWZPEs2O+uz5R/8Ay8qP06uHDzw1oGDrpo8wxWQ7Ae2IwE2gTDtpcyg8NUJp14uYwsvA47iDpXHGmPxQIDAQAB-----END PUBLIC KEY-----');
    return encrypt.encrypt(msg);
}

var ZlUtil = ZlUtil || {};
ZlUtil['loadJs'] = ZlUtil['loadJs'] || function (href) {
    var es = document.getElementsByTagName('script');
    for (var i = 0; i < es.length; i++)
        if (es[i]['src'].indexOf(href) != -1) return true;
    var src = document.createElement("script");
    src.src = href;
    var head = document.getElementsByTagName("head");
    head[0].appendChild(src);
}
ZlUtil['waitClass'] = "";
ZlUtil['waitLoad'] = ZlUtil['waitLoad'] || function (btn, callBack) {
    var waitSec = 60;
    btn.addClass(ZlUtil['waitClass']);
    btn.val("重新获取(" + waitSec + ")");
    btn.attr("wait", waitSec);
    var waitFun = function () {
        var n = btn.attr("wait");
        if (typeof n == "string") {
            n = n - 1;
            if (n <= 0) {
                btn.removeAttr("wait");
                btn.removeClass(ZlUtil['waitClass']);
                btn.html("获取验证码");
                if (typeof callBack == "function") {
                    callBack();
                }
            } else {
                btn.attr("wait", n);
                btn.html("重发(" + n + ")");
                setTimeout(waitFun, 1000);
            }
        }
    };
    setTimeout(waitFun, 1000);
}
ZlUtil.loadJs("https://c.zhulong.com/cno.js");
var getLoginPopName = ucenter_domain + "getLoginPop2019112820";
if (jQuery) {

} else {
    ZlUtil.loadJs("https://passport.zhulong.com/js/jquery-1.4.2.min.js");
}
var nationObj = {
    results: [{
        id: "CN",
        enname: "China",
        cnname: "中国",
        code: "+86",
        localname: ""
    }, {
        id: "HK",
        enname: "Hong Kong",
        cnname: "香港地区",
        code: "+852",
        localname: "Hong Kong"
    }, {
        id: "MO",
        enname: "Macau",
        cnname: "澳门地区",
        code: "+853",
        localname: "Macau"
    }, {
        id: "TW",
        enname: "Taiwan",
        cnname: "台湾地区",
        code: "+886",
        localname: "台灣"
    }, {
        id: "AL",
        enname: "Albania",
        cnname: "阿尔巴尼亚",
        code: "+355",
        localname: "Shqipëria"
    }, {
        id: "DZ",
        enname: "Algeria",
        cnname: "阿尔及利亚",
        code: "+213",
        localname: "People's Democratic Republic of Algeria"
    }, {
        id: "AF",
        enname: "Afghanistan",
        cnname: "阿富汗",
        code: "+93",
        localname: "Republic of Afghanistan"
    }, {
        id: "AR",
        enname: "Argentina",
        cnname: "阿根廷",
        code: "+54",
        localname: "Argentina"
    }, {
        id: "AE",
        enname: "United Arab Emirates",
        cnname: "阿拉伯联合大公国",
        code: "+971",
        localname: "The United Arab Emirates"
    }, {
        id: "AW",
        enname: "Aruba",
        cnname: "阿鲁巴",
        code: "+297",
        localname: "Aruba"
    }, {
        id: "OM",
        enname: "Oman",
        cnname: "阿曼",
        code: "+968",
        localname: "Sultanate of Oman"
    }, {
        id: "AZ",
        enname: "Azerbaijan",
        cnname: "阿塞拜疆",
        code: "+994",
        localname: "Azərbaycan"
    }, {
        id: "EG",
        enname: "Egypt",
        cnname: "埃及",
        code: "+20",
        localname: "The Arab Republic of Egypt"
    }, {
        id: "ET",
        enname: "Ethiopia",
        cnname: "埃塞俄比亚",
        code: "+251",
        localname: "Ityop'iya"
    }, {
        id: "IE",
        enname: "Ireland",
        cnname: "爱尔兰",
        code: "+353",
        localname: "Ireland"
    }, {
        id: "EE",
        enname: "Estonia",
        cnname: "爱沙尼亚",
        code: "+372",
        localname: "Eesti"
    }, {
        id: "AD",
        enname: "Andorra",
        cnname: "安道尔",
        code: "+376",
        localname: "Andorra"
    }, {
        id: "AO",
        enname: "Angola",
        cnname: "安哥拉",
        code: "+244",
        localname: "Angola"
    }, {
        id: "AI",
        enname: "Anguilla",
        cnname: "安圭拉",
        code: "+1264",
        localname: "Anguilla"
    }, {
        id: "AG",
        enname: "Antigua and Barbuda",
        cnname: "安提瓜和巴布达",
        code: "+1268",
        localname: "Antigua and Barbuda"
    }, {
        id: "AT",
        enname: "Austria",
        cnname: "奥地利",
        code: "+43",
        localname: "Österreich"
    }, {
        id: "AU",
        enname: "Australia",
        cnname: "澳大利亚",
        code: "+61",
        localname: "Australia"
    }, {
        id: "BB",
        enname: "Barbados",
        cnname: "巴巴多斯¯",
        code: "+1246",
        localname: "Barbados"
    }, {
        id: "PG",
        enname: "Papua New Guinea",
        cnname: "巴布亚新几内亚",
        code: "+675",
        localname: ""
    }, {
        id: "BS",
        enname: "Bahamas",
        cnname: "巴哈马",
        code: "+1242",
        localname: "Bahamas"
    }, {
        id: "PK",
        enname: "Pakistan",
        cnname: "巴基斯坦",
        code: "+92",
        localname: "Islamic Republic of Pakistan"
    }, {
        id: "PY",
        enname: "Paraguay",
        cnname: "巴拉圭",
        code: "+595",
        localname: "Paraguay"
    }, {
        id: "PS",
        enname: "Palestinian Territory",
        cnname: "巴勒斯坦领土",
        code: "+970",
        localname: "Palestinian Territories"
    }, {
        id: "BH",
        enname: "Bahrain",
        cnname: "巴林",
        code: "+973",
        localname: "The Kingdom of Bahrain"
    }, {
        id: "PA",
        enname: "Panama",
        cnname: "巴拿马",
        code: "+507",
        localname: "Panamá"
    }, {
        id: "BR",
        enname: "Brazil",
        cnname: "巴西",
        code: "+55",
        localname: "Brasil"
    }, {
        id: "BY",
        enname: "Belarus",
        cnname: "白俄罗斯",
        code: "+375",
        localname: "Белару́сь"
    }, {
        id: "BM",
        enname: "Bermuda",
        cnname: "百慕大",
        code: "+1441",
        localname: "Bermuda"
    }, {
        id: "BG",
        enname: "Bulgaria",
        cnname: "保加利亚",
        code: "+359",
        localname: "България"
    }, {
        id: "BJ",
        enname: "Benin",
        cnname: "贝宁",
        code: "+229",
        localname: "Bénin"
    }, {
        id: "BE",
        enname: "Belgium",
        cnname: "比利时",
        code: "+32",
        localname: "België"
    }, {
        id: "IS",
        enname: "Iceland",
        cnname: "冰岛",
        code: "+354",
        localname: "Ísland"
    }, {
        id: "PR",
        enname: "Puerto Rico",
        cnname: "波多黎各",
        code: "+1787",
        localname: "Puerto Rico"
    }, {
        id: "PL",
        enname: "Poland",
        cnname: "波兰",
        code: "+48",
        localname: ""
    }, {
        id: "BA",
        enname: "Bosnia and Herzegovina",
        cnname: "波斯尼亚和黑塞哥维那",
        code: "+387",
        localname: "Bosna i Hercegovina"
    }, {
        id: "BO",
        enname: "Bolivia",
        cnname: "玻利维亚",
        code: "+591",
        localname: "Bolivia"
    }, {
        id: "BZ",
        enname: "Belize",
        cnname: "伯利兹",
        code: "+501",
        localname: "Belize"
    }, {
        id: "BW",
        enname: "Botswana",
        cnname: "博茨瓦纳",
        code: "+267",
        localname: "Botswana"
    }, {
        id: "BT",
        enname: "Bhutan",
        cnname: "不丹",
        code: "+975",
        localname: "འབྲུག་ཡུལ་"
    }, {
        id: "BF",
        enname: "Burkina Faso",
        cnname: "布基纳法索",
        code: "+226",
        localname: "Burkina Faso"
    }, {
        id: "BI",
        enname: "Burundi",
        cnname: "布隆迪",
        code: "+257",
        localname: "Uburundi"
    }, {
        id: "KP",
        enname: "North Korea",
        cnname: "朝鲜",
        code: "+850",
        localname: ""
    }, {
        id: "GQ",
        enname: "Equatorial Guinea",
        cnname: "赤道几内亚",
        code: "+240",
        localname: "Guinea Ecuatorial"
    }, {
        id: "DK",
        enname: "Denmark",
        cnname: "丹麦",
        code: "+45",
        localname: "Danmark"
    }, {
        id: "DE",
        enname: "Germany",
        cnname: "德国",
        code: "+49",
        localname: "Deutschland"
    }, {
        id: "TL",
        enname: "East Timor",
        cnname: "东帝汶",
        code: "+670",
        localname: ""
    }, {
        id: "TG",
        enname: "Togo",
        cnname: "多哥",
        code: "+228",
        localname: "Togo"
    }, {
        id: "DM",
        enname: "Dominica",
        cnname: "多米尼加",
        code: "+1767",
        localname: "Dominica"
    }, {
        id: "DO",
        enname: "Dominican Republic",
        cnname: "多明尼加共和国",
        code: "+1809",
        localname: "Dominican Republic"
    }, {
        id: "RU",
        enname: "Russia",
        cnname: "俄罗斯",
        code: "+7",
        localname: "Россия"
    }, {
        id: "EC",
        enname: "Ecuador",
        cnname: "厄瓜多尔",
        code: "+593",
        localname: "Ecuador"
    }, {
        id: "ER",
        enname: "Eritrea",
        cnname: "厄立特里亚",
        code: "+291",
        localname: "Ertra"
    }, {
        id: "FR",
        enname: "France",
        cnname: "法国",
        code: "+33",
        localname: "France"
    }, {
        id: "FO",
        enname: "Faroe Islands",
        cnname: "法罗群岛",
        code: "+298",
        localname: "Faroe Islands"
    }, {
        id: "PF",
        enname: "French Polynesia",
        cnname: "法属波利尼西亚",
        code: "+689",
        localname: "French Polynesia"
    }, {
        id: "GF",
        enname: "French Guiana",
        cnname: "法属圭亚那",
        code: "+594",
        localname: "French Guiana"
    }, {
        id: "PH",
        enname: "Philippines",
        cnname: "菲律宾",
        code: "+63",
        localname: ""
    }, {
        id: "FJ",
        enname: "Fiji",
        cnname: "斐济",
        code: "+679",
        localname: "Fiji"
    }, {
        id: "FI",
        enname: "Finland",
        cnname: "芬兰",
        code: "+358",
        localname: "Suomi"
    }, {
        id: "CV",
        enname: "Cape Verde",
        cnname: "佛得角",
        code: "+238",
        localname: "Cabo Verde"
    }, {
        id: "GM",
        enname: "Gambia",
        cnname: "冈比亚",
        code: "+220",
        localname: "Gambia"
    }, {
        id: "CG",
        enname: "Republic Of The Congo",
        cnname: "刚果共和国",
        code: "+242",
        localname: "Congo [Republic]"
    }, {
        id: "CD",
        enname: "Democratic Republic of the Congo",
        cnname: "刚果民主共和国",
        code: "+243",
        localname: "Congo [DRC]"
    }, {
        id: "CO",
        enname: "Colombia",
        cnname: "哥伦比亚",
        code: "+57",
        localname: "Colombia"
    }, {
        id: "CR",
        enname: "Costa Rica",
        cnname: "哥斯达黎加",
        code: "+506",
        localname: "Costa Rica"
    }, {
        id: "GD",
        enname: "Grenada",
        cnname: "格林纳达",
        code: "+1473",
        localname: "Grenada"
    }, {
        id: "GL",
        enname: "Greenland",
        cnname: "格陵兰",
        code: "+299",
        localname: "Greenland"
    }, {
        id: "GE",
        enname: "Georgia",
        cnname: "格鲁吉亚",
        code: "+995",
        localname: "საქართველო"
    }, {
        id: "CU",
        enname: "Cuba",
        cnname: "古巴",
        code: "+53",
        localname: "Cuba"
    }, {
        id: "GP",
        enname: "Guadeloupe",
        cnname: "瓜德罗普岛",
        code: "+590",
        localname: "Guadeloupe"
    }, {
        id: "GU",
        enname: "Guam",
        cnname: "关岛",
        code: "+1671",
        localname: "Guam"
    }, {
        id: "GY",
        enname: "Guyana",
        cnname: "圭亚那",
        code: "+592",
        localname: "Guyana"
    }, {
        id: "KZ",
        enname: "Kazakhstan",
        cnname: "哈萨克斯坦",
        code: "+7",
        localname: "Россия"
    }, {
        id: "HT",
        enname: "Haiti",
        cnname: "海地",
        code: "+509",
        localname: "Haïti"
    }, {
        id: "KR",
        enname: "South Korea",
        cnname: "韩国",
        code: "+82",
        localname: "한국"
    }, {
        id: "NL",
        enname: "Netherlands",
        cnname: "荷兰",
        code: "+31",
        localname: "Nederland"
    }, {
        id: "AN",
        enname: "Netherlands Antilles",
        cnname: "荷属安的列斯群岛",
        code: "+599",
        localname: "Netherlands Antilles"
    }, {
        id: "ME",
        enname: "Montenegro",
        cnname: "黑山",
        code: "+382",
        localname: "Црна Гора"
    }, {
        id: "HN",
        enname: "Honduras",
        cnname: "洪都拉斯",
        code: "+504",
        localname: "Honduras"
    }, {
        id: "DJ",
        enname: "Djibouti",
        cnname: "吉布提",
        code: "+253",
        localname: "Djibouti"
    }, {
        id: "KG",
        enname: "Kyrgyzstan",
        cnname: "吉尔吉斯斯坦",
        code: "+996",
        localname: "Кыргызстан"
    }, {
        id: "GN",
        enname: "Guinea",
        cnname: "几内亚",
        code: "+224",
        localname: "Guinée"
    }, {
        id: "GW",
        enname: "Guinea-Bissau",
        cnname: "几内亚比绍",
        code: "+245",
        localname: ""
    }, {
        id: "CA",
        enname: "Canada",
        cnname: "加拿大",
        code: "+1",
        localname: "Canada"
    }, {
        id: "GH",
        enname: "Ghana",
        cnname: "加纳",
        code: "+233",
        localname: "Ghana"
    }, {
        id: "GA",
        enname: "Gabon",
        cnname: "加蓬",
        code: "+241",
        localname: "Gabon"
    }, {
        id: "KH",
        enname: "Cambodia",
        cnname: "柬埔寨",
        code: "+855",
        localname: "Kampuchea"
    }, {
        id: "CZ",
        enname: "Czech Republic",
        cnname: "捷克共和国",
        code: "+420",
        localname: "Česko"
    }, {
        id: "ZW",
        enname: "Zimbabwe",
        cnname: "津巴布韦",
        code: "+263",
        localname: "Zimbabwe"
    }, {
        id: "CM",
        enname: "Cameroon",
        cnname: "喀麦隆",
        code: "+237",
        localname: "Cameroun"
    }, {
        id: "QA",
        enname: "Qatar",
        cnname: "卡塔尔",
        code: "+974",
        localname: "The State of Qatar"
    }, {
        id: "KY",
        enname: "Cayman Islands",
        cnname: "开曼群岛",
        code: "+1345",
        localname: "Cayman Islands"
    }, {
        id: "KM",
        enname: "Comoros",
        cnname: "科摩罗",
        code: "+269",
        localname: "Comoros"
    }, {
        id: "KW",
        enname: "Kuwait",
        cnname: "科威特",
        code: "+965",
        localname: "The State of Kuwait"
    }, {
        id: "HR",
        enname: "Croatia",
        cnname: "克罗地亚",
        code: "+385",
        localname: "Hrvatska"
    }, {
        id: "KE",
        enname: "Kenya",
        cnname: "肯尼亚",
        code: "+254",
        localname: "Kenya"
    }, {
        id: "CK",
        enname: "Cook Islands",
        cnname: "库克群岛",
        code: "+682",
        localname: ""
    }, {
        id: "LV",
        enname: "Latvia",
        cnname: "拉脱维亚",
        code: "+371",
        localname: "Latvija"
    }, {
        id: "LS",
        enname: "Lesotho",
        cnname: "莱索托",
        code: "+266",
        localname: "Lesotho"
    }, {
        id: "LA",
        enname: "Laos",
        cnname: "老挝",
        code: "+856",
        localname: "ປະຊາຊົນສປປລາວ"
    }, {
        id: "LB",
        enname: "Lebanon",
        cnname: "黎巴嫩",
        code: "+961",
        localname: "Republic of Lebanon"
    }, {
        id: "LT",
        enname: "Lithuania",
        cnname: "立陶宛",
        code: "+370",
        localname: "Lietuva"
    }, {
        id: "LR",
        enname: "Liberia",
        cnname: "利比里亚",
        code: "+231",
        localname: "Liberia"
    }, {
        id: "LY",
        enname: "Libya",
        cnname: "利比亚",
        code: "+218",
        localname: "State of Libya"
    }, {
        id: "LI",
        enname: "Liechtenstein",
        cnname: "列支敦士登",
        code: "+423",
        localname: "Liechtenstein"
    }, {
        id: "RE",
        enname: "RÃ©union Island",
        cnname: "留尼旺岛",
        code: "+262",
        localname: "Réunion"
    }, {
        id: "LU",
        enname: "Luxembourg",
        cnname: "卢森堡",
        code: "+352",
        localname: "Lëtzebuerg"
    }, {
        id: "RW",
        enname: "Rwanda",
        cnname: "卢旺达",
        code: "+250",
        localname: "Rwanda"
    }, {
        id: "RO",
        enname: "Romania",
        cnname: "罗马尼亚",
        code: "+40",
        localname: "România"
    }, {
        id: "MG",
        enname: "Madagascar",
        cnname: "马达加斯加",
        code: "+261",
        localname: "Madagasikara"
    }, {
        id: "MV",
        enname: "Maldives",
        cnname: "马尔代夫",
        code: "+960",
        localname: ""
    }, {
        id: "MT",
        enname: "Malta",
        cnname: "马耳他",
        code: "+356",
        localname: "Malta"
    }, {
        id: "MW",
        enname: "Malawi",
        cnname: "马拉维",
        code: "+265",
        localname: "Malawi"
    }, {
        id: "MY",
        enname: "Malaysia",
        cnname: "马来西亚",
        code: "+60",
        localname: "Malaysia"
    }, {
        id: "ML",
        enname: "Mali",
        cnname: "马里",
        code: "+223",
        localname: "Mali"
    }, {
        id: "MK",
        enname: "Macedonia",
        cnname: "马其顿",
        code: "+389",
        localname: "Македонија"
    }, {
        id: "MQ",
        enname: "Martinique",
        cnname: "马提尼克",
        code: "+596",
        localname: "Martinique"
    }, {
        id: "MU",
        enname: "Mauritius",
        cnname: "毛里求斯",
        code: "+230",
        localname: "Mauritius"
    }, {
        id: "MR",
        enname: "Mauritania",
        cnname: "毛里塔尼亚",
        code: "+222",
        localname: "The Islamic Republic of Mauritania"
    }, {
        id: "US",
        enname: "United States",
        cnname: "美国",
        code: "+1",
        localname: "United States"
    }, {
        id: "MN",
        enname: "Mongolia",
        cnname: "蒙古",
        code: "+976",
        localname: "Монгол Улс"
    }, {
        id: "MS",
        enname: "Montserrat",
        cnname: "蒙特塞拉特",
        code: "+1664",
        localname: "Montserrat"
    }, {
        id: "BD",
        enname: "Bangladesh",
        cnname: "孟加拉国",
        code: "+880",
        localname: "বাংলাদেশ"
    }, {
        id: "PE",
        enname: "Peru",
        cnname: "秘鲁",
        code: "+51",
        localname: "Perú"
    }, {
        id: "MD",
        enname: "Moldova",
        cnname: "摩尔多瓦",
        code: "+373",
        localname: "Moldova"
    }, {
        id: "MA",
        enname: "Morocco",
        cnname: "摩洛哥",
        code: "+212",
        localname: "The Kingdom of Morocco"
    }, {
        id: "MC",
        enname: "Monaco",
        cnname: "摩纳哥",
        code: "+377",
        localname: "Monaco"
    }, {
        id: "MZ",
        enname: "Mozambique",
        cnname: "莫桑比克",
        code: "+258",
        localname: "Moçambique"
    }, {
        id: "MX",
        enname: "Mexico",
        cnname: "墨西哥",
        code: "+52",
        localname: "México"
    }, {
        id: "NA",
        enname: "Namibia",
        cnname: "纳米比亚",
        code: "+264",
        localname: "Namibia"
    }, {
        id: "ZA",
        enname: "South Africa",
        cnname: "南非",
        code: "+27",
        localname: "South Africa"
    }, {
        id: "SS",
        enname: "South Sudan",
        cnname: "南苏丹",
        code: "+211",
        localname: ""
    }, {
        id: "NP",
        enname: "Nepal",
        cnname: "尼泊尔",
        code: "+977",
        localname: "नेपाल"
    }, {
        id: "NI",
        enname: "Nicaragua",
        cnname: "尼加拉瓜",
        code: "+505",
        localname: "Nicaragua"
    }, {
        id: "NE",
        enname: "Niger",
        cnname: "尼日尔",
        code: "+227",
        localname: "Niger"
    }, {
        id: "NG",
        enname: "Nigeria",
        cnname: "尼日利亚",
        code: "+234",
        localname: "Nigeria"
    }, {
        id: "NO",
        enname: "Norway",
        cnname: "挪威",
        code: "+47",
        localname: "Norge"
    }, {
        id: "PT",
        enname: "Portugal",
        cnname: "葡萄牙",
        code: "+351",
        localname: "Portugal"
    }, {
        id: "JP",
        enname: "Japan",
        cnname: "日本",
        code: "+81",
        localname: "にっぽんこく，にほんこく"
    }, {
        id: "SE",
        enname: "Sweden",
        cnname: "瑞典",
        code: "+46",
        localname: "Sverige"
    }, {
        id: "CH",
        enname: "Switzerland",
        cnname: "瑞士",
        code: "+41",
        localname: "Schweiz"
    }, {
        id: "SV",
        enname: "El Salvador",
        cnname: "萨尔瓦多",
        code: "+503",
        localname: "El Salvador"
    }, {
        id: "WS",
        enname: "Samoa",
        cnname: "萨摩亚",
        code: "+685",
        localname: "Samoa"
    }, {
        id: "RS",
        enname: "Serbia",
        cnname: "塞尔维亚",
        code: "+381",
        localname: "Србија"
    }, {
        id: "SL",
        enname: "Sierra Leone",
        cnname: "塞拉利昂",
        code: "+232",
        localname: "Sierra Leone"
    }, {
        id: "SN",
        enname: "Senegal",
        cnname: "塞内加尔",
        code: "+221",
        localname: "Sénégal"
    }, {
        id: "CY",
        enname: "Cyprus",
        cnname: "塞浦路斯",
        code: "+357",
        localname: "Κυπρος"
    }, {
        id: "SC",
        enname: "Seychelles",
        cnname: "塞舌尔",
        code: "+248",
        localname: "Seychelles"
    }, {
        id: "SA",
        enname: "Saudi Arabia",
        cnname: "沙特阿拉伯",
        code: "+966",
        localname: ""
    }, {
        id: "ST",
        enname: "Sao Tome and Principe",
        cnname: "圣多美和普林西比",
        code: "+239",
        localname: ""
    }, {
        id: "KN",
        enname: "Saint Kitts and Nevis",
        cnname: "圣基茨和尼维斯",
        code: "+1869",
        localname: "Saint Kitts and Nevis"
    }, {
        id: "LC",
        enname: "Saint Lucia",
        cnname: "圣卢西亚",
        code: "+1758",
        localname: "Saint Lucia"
    }, {
        id: "SM",
        enname: "San Marino",
        cnname: "圣马力诺",
        code: "+378",
        localname: "San Marino"
    }, {
        id: "PM",
        enname: "Saint Pierre and Miquelon",
        cnname: "圣皮埃尔和密克隆群岛",
        code: "+508",
        localname: "Saint Pierre and Miquelon"
    }, {
        id: "VC",
        enname: "Saint Vincent and The Grenadines",
        cnname: "圣文森特和格林纳丁斯",
        code: "+1784",
        localname: "Saint Vincent and the Grenadines"
    }, {
        id: "LK",
        enname: "Sri Lanka",
        cnname: "斯里兰卡",
        code: "+94",
        localname: "Sri Lanka"
    }, {
        id: "SK",
        enname: "Slovakia",
        cnname: "斯洛伐克",
        code: "+421",
        localname: "Slovensko"
    }, {
        id: "SI",
        enname: "Slovenia",
        cnname: "斯洛文尼亚",
        code: "+386",
        localname: "Slovenija"
    }, {
        id: "SZ",
        enname: "Swaziland",
        cnname: "斯威士兰",
        code: "+268",
        localname: "Swaziland"
    }, {
        id: "SD",
        enname: "Sudan",
        cnname: "苏丹",
        code: "+249",
        localname: "Republic of the Sudan"
    }, {
        id: "SR",
        enname: "Suriname",
        cnname: "苏里南",
        code: "+597",
        localname: "Suriname"
    }, {
        id: "SO",
        enname: "Somalia",
        cnname: "索马里",
        code: "+252",
        localname: "Soomaaliya"
    }, {
        id: "TJ",
        enname: "Tajikistan",
        cnname: "塔吉克斯坦",
        code: "+992",
        localname: "Тоҷикистон"
    }, {
        id: "TH",
        enname: "Thailand",
        cnname: "泰国",
        code: "+66",
        localname: "ราชอาณาจักรไทย"
    }, {
        id: "TZ",
        enname: "Tanzania",
        cnname: "坦桑尼亚",
        code: "+255",
        localname: "Tanzania"
    }, {
        id: "TO",
        enname: "Tonga",
        cnname: "汤加",
        code: "+676",
        localname: "Tonga"
    }, {
        id: "TC",
        enname: "Turks and Caicos Islands",
        cnname: "特克斯和凯科斯群岛›",
        code: "+1649",
        localname: "Turks and Caicos Islands"
    }, {
        id: "TT",
        enname: "Trinidad and Tobago",
        cnname: "特里尼达和多巴哥",
        code: "+1868",
        localname: "Trinidad and Tobago"
    }, {
        id: "TN",
        enname: "Tunisia",
        cnname: "突尼斯",
        code: "+216",
        localname: "The Republic of Tunisia"
    }, {
        id: "TR",
        enname: "Turkey",
        cnname: "土耳其",
        code: "+90",
        localname: "Türkiye"
    }, {
        id: "TM",
        enname: "Turkmenistan",
        cnname: "土库曼斯坦",
        code: "+993",
        localname: "Türkmenistan"
    }, {
        id: "VU",
        enname: "Vanuatu",
        cnname: "瓦努阿图",
        code: "+678",
        localname: "Vanuatu"
    }, {
        id: "GT",
        enname: "Guatemala",
        cnname: "危地马拉",
        code: "+502",
        localname: "Guatemala"
    }, {
        id: "VE",
        enname: "Venezuela",
        cnname: "委内瑞拉",
        code: "+58",
        localname: "Venezuela"
    }, {
        id: "BN",
        enname: "Brunei",
        cnname: "文莱",
        code: "+673",
        localname: "Brunei Darussalam"
    }, {
        id: "UG",
        enname: "Uganda",
        cnname: "乌干达",
        code: "+256",
        localname: "Uganda"
    }, {
        id: "UA",
        enname: "Ukraine",
        cnname: "乌克兰",
        code: "+380",
        localname: "Україна"
    }, {
        id: "UY",
        enname: "Uruguay",
        cnname: "乌拉圭",
        code: "+598",
        localname: "Uruguay"
    }, {
        id: "UZ",
        enname: "Uzbekistan",
        cnname: "乌兹别克斯坦",
        code: "+998",
        localname: "O'zbekiston"
    }, {
        id: "ES",
        enname: "Spain",
        cnname: "西班牙",
        code: "+34",
        localname: "España"
    }, {
        id: "GR",
        enname: "Greece",
        cnname: "希腊",
        code: "+30",
        localname: "Ελλάς"
    }, {
        id: "CI",
        enname: "Ivory Coast",
        cnname: "象牙海岸",
        code: "+225",
        localname: "Côte d'Ivoire"
    }, {
        id: "SG",
        enname: "Singapore",
        cnname: "新加坡",
        code: "+65",
        localname: "Singapura"
    }, {
        id: "NC",
        enname: "New Caledonia",
        cnname: "新喀里多尼亚",
        code: "+687",
        localname: "New Caledonia"
    }, {
        id: "NZ",
        enname: "New Zealand",
        cnname: "新西兰",
        code: "+64",
        localname: "New Zealand"
    }, {
        id: "HU",
        enname: "Hungary",
        cnname: "匈牙利",
        code: "+36",
        localname: "Magyarország"
    }, {
        id: "SY",
        enname: "Syria",
        cnname: "叙利亚",
        code: "+963",
        localname: "The Syrian Arab Republic"
    }, {
        id: "JM",
        enname: "Jamaica",
        cnname: "牙买加",
        code: "+1876",
        localname: "Jamaica"
    }, {
        id: "AM",
        enname: "Armenia",
        cnname: "亚美尼亚",
        code: "+374",
        localname: "Հայաստան"
    }, {
        id: "YE",
        enname: "Yemen",
        cnname: "也门",
        code: "+967",
        localname: ""
    }, {
        id: "IQ",
        enname: "Iraq",
        cnname: "伊拉克",
        code: "+964",
        localname: "Republic Of Iraq"
    }, {
        id: "IR",
        enname: "Iran",
        cnname: "伊朗",
        code: "+98",
        localname: "The Islamic Republic of Iran"
    }, {
        id: "IL",
        enname: "Israel",
        cnname: "以色列",
        code: "+972",
        localname: "State of Israel"
    }, {
        id: "IT",
        enname: "Italy",
        cnname: "意大利",
        code: "+39",
        localname: "Italia"
    }, {
        id: "IN",
        enname: "India",
        cnname: "印度",
        code: "+91",
        localname: "India"
    }, {
        id: "ID",
        enname: "Indonesia",
        cnname: "印尼",
        code: "+62",
        localname: "Indonesia"
    }, {
        id: "GB",
        enname: "United Kingdom",
        cnname: "英国",
        code: "+44",
        localname: "United Kingdom"
    }, {
        id: "VG",
        enname: "Virgin Islands, British",
        cnname: "英属维尔京群岛",
        code: "+1340",
        localname: "U.S. Virgin Islands"
    }, {
        id: "JO",
        enname: "Jordan",
        cnname: "约旦",
        code: "+962",
        localname: "The Hashemite Kingdom of Jordan"
    }, {
        id: "VN",
        enname: "Vietnam",
        cnname: "越南",
        code: "+84",
        localname: "Việt Nam"
    }, {
        id: "ZM",
        enname: "Zambia",
        cnname: "赞比亚",
        code: "+260",
        localname: "Zambia"
    }, {
        id: "JE",
        enname: "Jersey",
        cnname: "泽西岛",
        code: "+44",
        localname: "United Kingdom"
    }, {
        id: "TD",
        enname: "Chad",
        cnname: "乍得",
        code: "+235",
        localname: "Tchad"
    }, {
        id: "GI",
        enname: "Gibraltar",
        cnname: "直布罗陀",
        code: "+350",
        localname: "Gibraltar"
    }, {
        id: "CL",
        enname: "Chile",
        cnname: "智利",
        code: "+56",
        localname: "Chile"
    }, {
        id: "CF",
        enname: "Central African Republic",
        cnname: "中非共和国",
        code: "+236",
        localname: "République Centrafricaine"
    }]
};

function infosuccess() {
    var showBox = $("#login_show_box");
    var error_paos = $(".popo", showBox);
    var tankuang_info = $(".tankuang_info", showBox);
    var Tishi = $(".Error", showBox);
    $(showBox).hide();
    $(".cover").hide();
    var url = window.parent.location.href;
    if (url.indexOf("#") > -1) {
        url = url.substr(0, url.indexOf("#"));
    }
    if (typeof zhulong_login_callback == "string" && zhulong_login_callback != "") {
        window.parent.location.href = zhulong_login_callback;
    } else if (typeof zhulong_login_callback == "function") {
        zhulong_login_callback();
    } else {
        window.location.href = url;
    }
}

function applogin() {

    if (!!window.WebSocket && window.WebSocket.prototype.send) {
        ws = new WebSocket("wss://message.zhulong.com/wss/");
        ws.onopen = function () {
            ws.send('pcid:' + $.cookie('pcid'));
        };
        ws.onmessage = function (e) {
            console.log(e.data);
            if (e.data.indexOf("有数据") > -1) {
                ws.send('over');
                $.getJSON("https://passport.zhulong.com/ajax/LoginForApp?jsoncallback=?", function (data) {
                    if (data.errNo == 0) {
                        if (data.redirecturl == null || data.redirecturl == "null") {
                            data.redirecturl = "https://www.zhulong.com";
                        }
                        window.location.href = data.redirecturl;
                    } else {
                        ws.send('pcid:' + $.cookie('pcid'));
                    }
                });
            }
        };
    } else {
        $.getJSON("https://passport.zhulong.com/ajax/LoginForApp?jsoncallback=?", function (data) {
            if (data.errNo == 0) {
                if (data.redirecturl == null || data.redirecturl == "null") {
                    data.redirecturl = "https://www.zhulong.com";
                }
                window.location.href = data.redirecturl;
            } else {
                if ($("#login_show_box:visible").length == 1) {
                    setTimeout(applogin, 1000);
                }

            }
        });
    }

}

if (typeof ucenter_domain == "undefined") ucenter_domain = "https://passport.zhulong.com/";
/*JavaScript Document*/
var zhulong_login_callback;

function ucenterLoginInit() {
    if ($("body").data("loadpop") == 1) {
        return;
    }
    $("body").data("loadpop", 1);
    if (typeof localStorage == "object") {
        if (typeof localStorage[getLoginPopName] == "string") {
            $("body").data("loginTpl", localStorage[getLoginPopName]);
            var s = "login_show_box";
            if ($("#login_show_box").length > 0) {

            } else {
                var str = '<div id="' + s + '" style="display:none">' + localStorage[getLoginPopName] + '</div>';
                $("body").append(str);
                setTimeout(LoginPopInit, 300);
                $("body").append('<div class="cover" style="width: 100%;height: 100%;background: #000000;opacity: 0.5;position: fixed;top: 0;z-index:11115;display: none;"></div>')
                setTimeout(newLoginInit, 300);
            }
            return;
        }
    }
    $.ajax({
        url: ucenter_domain + "/openjson/getLoginPop?jsoncallback=?",
        data: {},
        async: false,
        dataType: "jsonp",
        success: function (data) {
            if (typeof data == undefined || typeof data['result'] == undefined || typeof data['result']['html'] == undefined) {
                return;
            }
            $("body").data("loginTpl", data.result.html);
            if (typeof localStorage == "object") {
                localStorage[getLoginPopName] = data.result.html;
            }
            var s = "login_show_box";
            if ($("#login_show_box").length > 0) {

            } else {
                var str = '<div id="' + s + '" style="display:none">' + data.result.html + '</div>';
                $("body").append(str);
                if ($(".cover").length == 0) {
                    $("body").append('<div class="cover" style="width: 100%;height: 100%;background: #000000;opacity: 0.5;position: fixed;top: 0;z-index:11115;display: none;"></div>');
                }

            }
        }

    });
};

function widow_Loading(liuyan, callback) {
    if ($("#login_show_box:visible").length == 1) {
        return;
    }
    var fromstep = $.cookie("fromstep");
    if (fromstep == 3) {
        callback = function () {
            infosaveall(callback);
        }
    }
    if ($("#login_show_box").length == 0) {
        if (document.body) {
            ucenterLoginInit();
        } else {
            $(ucenterLoginInit);
        }
    }
    if ($("#login_show_box").length == 0) {
        setTimeout(
            function () {
                widow_Loading(liuyan, callback);
            }, 300);
        return;
    }
    zhulong_login_callback = callback;

    var showBox = $("#login_show_box");
    var tankuang = $(".reg_zone", showBox).eq(0);
    var mobileloginInput = $("input[placeholder=" + zn['pleaseInputMobilecode'] + "]", tankuang);
    if ($(".login-active").html() == "账号登录") {
        $("[name=loginName]", tankuang).focus();
    } else {
        mobileloginInput.focus();
    }
    loginButtonDetect();
    LoginPopInit();
    newLoginInit();
    newlogin();
    openLoginModal();
    $.getJSON('https://c.zhulong.com/shownum.php?jsoncallback=?', {showtype: "loginpop"}, function (data) {
    });
    sjreg(1, 0, '显示弹框', nowurl);
    setTimeout(applogin, 1000);
};

//	弹窗出现效果
function openLoginModal() {//登录绑定函数
    // alert(123)
    showLoginForm();
    setTimeout(function () {
        $('.cover').fadeTo('fast', 0.7);
    }, 130);
};

function showLoginForm() {
    // $('.chulai').fadeOut('fast',function(){
    $("#login_show_box").fadeTo('fast', 0).animate({top: '250px', opacity: '1.0'});
    // });
//   $('.Error').removeClass('').html('');
}

error_paos = '';

function newLoginInit() {
    var showBox = $("#login_show_box");
    var tankuang_phonebind = $(".tankuang_phonebind", showBox).eq(0);
    var mobileInput = $("input[placeholder=" + zn['pleaseInputcode'] + "]", tankuang_phonebind);
    var tankuang_phonebindTishi = $(".Tishi:eq(0)", tankuang_phonebind);
    var tankuang = $(".login_center_in", showBox).eq(0);
    var Tishi = $(".Error", showBox);
    error_paos = $(".popo", showBox);
    var popLoginForm = $("form", showBox);
    var mobileloginInput = $("input[placeholder=" + zn['pleaseInputMobilecode'] + "]", tankuang);
    var mobilecodeInput = $("#password2", tankuang);
    var loginMobileCodePop = $(".tankuang_yanzheng", showBox).eq(0);
    var loginMobileCodePopTishi = $(".Tishi:eq(0)", loginMobileCodePop);
    error_paos = $("#login_show_box .popo");
    $("#Uname").focus(function () {
        hidePopError(error_paos.eq(2));
        hidePopError(error_paos.eq(3));
    });
    $("#downappimg").attr("src", "https://f.zhulong.com/qrcode.php?data=https://passport.zhulong.com/user/downapp?uid=" + $.cookie('pcid'));
    $("#Uname").keyup(function (e) {
        hidePopError(error_paos.eq(2));
        hidePopError(error_paos.eq(3));
        loginButtonDetect();

    });
    var nationItem = nationObj.results, e = '';
    for (var l = 0, m = nationItem.length; l < m; l++) {
        var n = (nationItem[l].localname) ? "(" + nationItem[l].localname + ")" : "", f = nationItem[l].code;
        //if(l==3){
        //	e += "<a href='javascript:;' style='border-bottom:1px #e4e4e4 solid;' data-code='" + f + "'>" + nationItem[l].cnname + n + " " + nationItem[l].code + "</a>"
        //}else{
        //	e += "<a href='javascript:;' data-code='" + f + "'>" + nationItem[l].cnname + n + " " + nationItem[l].code + "</a>"
        //}
        //$('.nation-num').click(function(event) {
        //	/* Act on the event */
        //	$('.nation-block').show();
        //});
        e += "<p class='list_P' style='width: 170px;height: 32px;line-height: 32px;padding: 0 80px 0 30px;color:#999999;'>";
        e += "<span class='quhao' style='float: left;position: static;'>" + f + "</span>";
        e += "<span class='guojia' style='float: right;position: static;'>" + nationItem[l].cnname + "</span>";
        e += "</p>";
    }
    //$('.nation-block').append(e);
    $('.guoji').append(e);
    $(".choice_guoji").click(function () {
        if ($(".guoji").is(":hidden")) {
            $(".guoji").css("display", "block");
        } else {
            $(".guoji").css("display", "none");
        }
    });
    $(".choice_guoji").next().click(function () {
        if ($(".guoji").is(":hidden")) {
            $(".guoji").css("display", "block");
        } else {
            $(".guoji").css("display", "none");
        }
    });
    $(".list_P").hover(function () {
        $(this).css("background", "#EFEFEF");
        $(this).css("color", "#333333");
    }, function () {
        $(this).css("background", "");
        $(this).css("color", "#999999");
    })
    $('.guoji').find('.list_P').click(function () {
        var areacode = $(this).find(".quhao").text();
        if (areacode != '+86') {
            $('.choice_guoji').html(areacode).css("color", "#A9A9A9");
        } else {
            $('.choice_guoji').html(areacode).css("color", "#A9A9A9");
        }
        if (areacode.length == 3) {
            $(".choice_guoji").next().css("left", "65px");
        } else if (areacode.length == 4) {
            $(".choice_guoji").next().css("left", "65px");
        } else if (areacode.length == 5) {
            $(".choice_guoji").next().css("left", "71px");
        }
        $('.guoji').hide();
        loginButtonDetect();
    });
    $("#Uname").blur(function () {
        var username = $(this).val();
        if (username == "用户名/邮箱/手机号") {
            showPopError(error_paos.eq(2), "用户名不能为空");
            return;
        }
        if (username == "") {
            showPopError(error_paos.eq(2), "用户名不能为空");
            return;
        }
        $.ajax({
            url: ucenter_domain + "user/UsernameIsExist?jsoncallback=?",
            async: false,
            cache: false,
            data: {username: username},
            dataType: "jsonp",
            success: function (data) {
                if (data.errNo == 0) {
                    showPopError(error_paos.eq(2), "用户名不存在");
                    hidePopError(error_paos.eq(3));
                    loginButtonDetect();
                    return;
                } else {
                    hidePopError(error_paos.eq(3));
                    if (data['passWordIsNull'] == true) {
                        showPopError(error_paos.eq(3), "您尚未设置密码,请用手机号登录");
                    }
                }
            }
        });
        loginButtonDetect();
    });
    //	第三方图标反色
    $(".qq_h").hover(function () {
        $(this).find('img').attr('src', '' + ucenter_domain + '/img/loginimg/qq1.png');
    }, function () {
        $(this).find('img').attr('src', '' + ucenter_domain + '/img/loginimg/qq0.png');
    });
    $(".weibo_h").hover(function () {
        $(this).find('img').attr('src', '' + ucenter_domain + '/img/loginimg/weibo1.png');
    }, function () {
        $(this).find('img').attr('src', '' + ucenter_domain + '/img/loginimg/weibo0.png');
    });
    $(".weixin_h").hover(function () {
        $(this).find('img').attr('src', '' + ucenter_domain + '/img/loginimg/weixin1.png');
    }, function () {
        $(this).find('img').attr('src', '' + ucenter_domain + '/img/loginimg/weixin0.png');
    });

    //获取、失去焦点时变色
    $("input.bor_red").focus(function () {
        $(this).parent().removeClass("error-red");
        $(this).parent().css("border", "1px solid #ee2e2e");
    });
    $("input.bor_red").blur(function () {
        // $(this).parent().removeClass("error-red");
        $(this).parent().css("border", "1px solid #eeeeee");
    });
    //验证码出现时弹框变高
    if ($(".Tishi_code").is(':visible')) {
        $(".login_center_in").animate({height: '306px'});
    } else {
        // $(".login_center_in").animate({height:'266px'});
    }
    ;
    //  控制选择框变色
    $(".label_gai", showBox).toggle(function () {
        $("[name=cookieday]", popLoginForm).val(0);
        $(".icon-weixuanzhong", showBox).css("display", "inline");
        $(".icon-xuanzhong", showBox).css("display", "none");
    }, function () {
        $("[name=cookieday]", popLoginForm).val(10);
        $(".icon-weixuanzhong", showBox).css("display", "none");
        $(".icon-xuanzhong", showBox).css("display", "inline");
    })
    //  控制眼睛变色--密码可见
    $(".eye", showBox).unbind("click").click(function () {
        if ($("#password")[0].type == "password") {
            try {
                $("#password")[0].type = "text";
            } catch (e) {
                $("#password").after('<input type="text" name="password" value="' + $("#password").val() + '" />');
                $("#password").remove();
                $("input[name='password']:eq(0)").attr("id", "password");
            }
            $(this).find("img").attr("src", ucenter_domain + '/img/loginimg/kejian.png');
        } else {
            try {
                $("#password")[0].type = "password";
            } catch (e) {
                $("#password").after('<input type="password" name="password" value="' + $("#password").val() + '" />');
                $("#password").remove();
                $("input[name='password']:eq(0)").attr("id", "password");
            }
            $(this).find("img").attr("src", ucenter_domain + '/img/loginimg/bukejian.png');
        }
    });
};


//	关闭弹窗
function close_tan() {
    $("#login_show_box").hide();
    $('.cover').hide();
}

$(".close7").hover(function () {
    $(this).find('img').attr("src", ucenter_domain + "/img/loginimg/x1.png")
}, function () {
    $(this).find('img').attr("src", ucenter_domain + "/img/loginimg/x.png")
})


function d(i) {
    return document.getElementById(i);
}

var error_paos = '';

function showPopError(obj, str, noerror) {
    if (typeof noerror != "undefined") {
        $(obj).find(".pom").removeClass("error");
        $(obj).find(".pom").html('' + str);
    } else {
        $(obj).find(".pom").addClass("error");
        // $(".denglu_btn").removeClass("denglu_btn_on");
        $(obj).find(".pom").html('<img src="' + ucenter_domain + 'img/loginimg/warn.png">' + str);
        if (str == "请输入正确的验证码") {
            $(obj).prev().prev().addClass("error-red");
        } else {
            $(obj).prev().addClass("error-red");
        }

    }
    $(obj).show();
}

function hidePopError(obj) {
    $(obj).find(".pom").html('');
    $(obj).hide();
}

function loginButtonDetect() {
    // $(".denglu_btn").removeClass("denglu_btn_on");
    if (!$("#content1 li:eq(1)").hasClass("show")) {
        $(".denglu_btn").html("注册/登录");
        $('.forgetpass').hide();
        var mobile = $.trim($("#tel").val());
        if (mobile == "") {
            return;
        }
        var guoji = $.trim($(".diqu").val());
        if (guoji.indexOf("+") === -1) {
            if (guoji === "") {
                guoji = "+86"
                $(".diqu").val(guoji)
            } else {
                guoji = "+" + guoji
                $(".diqu").val(guoji)
            }
        }
        if (guoji == "+86") {
            var reg = /^(1[0-9]{10})$/;    //手机号
            if (!reg.test(mobile)) {
                return;
            }
        } else {
            var reg = /^([0-9]+)$/;    //手机号
            if (!reg.test(mobile)) {
                return;
            }
        }
        hidePopError(error_paos.eq(0));
        var code = $("#Ucode").val();
        var reg = /^([0-9]{6})$/;
        if (!reg.test(code)) {
            return;
        }
        hidePopError(error_paos.eq(1));
    } else {
        $(".denglu_btn").html("登录");
        $('.forgetpass').show();
        if ($("#Uname").val() == '') {
            return false;
        }
        if ($("#password").val() == '') {
            return false;
        }
        if ($.cookie("le") < 5) {
        } else {
            if (!checkSeccode(true, 0)) return false;
        }
    }
    // $(".denglu_btn").addClass("denglu_btn_on");
}

var tankuang = '';
var zn = {
    'pleaseInputcode': "请输入手机号",
    'pleaseInputMobilecode': "请输入手机号",
    'pleaseInputSMScode': "请输入短信验证码"
};

function LoginPopInit() {
    var showBox = $("#login_show_box");
    var tankuang_phonebind = $(".tankuang_phonebind", showBox).eq(0);
    var mobileInput = $("input[placeholder=" + zn['pleaseInputcode'] + "]", tankuang_phonebind);
    var tankuang_phonebindTishi = $(".Tishi:eq(0)", tankuang_phonebind);
    tankuang = $(".login_denglu_left", showBox).eq(0);
    var Tishi = $(".Error", showBox);
    var popLoginForm = $("form", showBox).eq(0);
    var loginMobileCodePop = $(".tankuang_yanzheng", showBox).eq(0);
    var loginMobileCodePopTishi = $(".Tishi:eq(0)", loginMobileCodePop);
    error_paos = $(".popo", showBox);
    var mobileloginInput = $("input[placeholder=" + zn['pleaseInputMobilecode'] + "]", tankuang);
    var mobilecodeInput = $("#Ucode", tankuang);
    $("[name=loginName]", tankuang).keyup(function () {
        hidePopError(error_paos.eq(2));
        loginButtonDetect();
    });
    $("[name=passwd]", tankuang).keyup(function () {
        if (error_paos.eq(3).text().indexOf("您尚未设置密码,请用手机号登录") == -1) {
            hidePopError(error_paos.eq(3));
        }

        loginButtonDetect();
    });
    $("[name=passwd]", tankuang).focus(function () {
        if (error_paos.eq(3).text().indexOf("您尚未设置密码,请用手机号登录") == -1) {
            hidePopError(error_paos.eq(3));
        }
    });
    $("[name=passwd]", tankuang).blur(function () {
        if ($("[name=passwd]", tankuang).val() == "") {
            if (error_paos.eq(3).text().indexOf("您尚未设置密码,请用手机号登录") == -1) {
                showPopError(error_paos.eq(3), "请输入正确的密码");
            }
            return;
        }
    });

    function showError(msg) {
        Tishi.html('<img style="padding-left: 6px;" src="' + ucenter_domain + '/img/loginimg/jingshi.png"/>' + msg).css("background-color", "#FFEEE8");
    }

    function hideError() {
        Tishi.html('').css("background-color", "#fff");
    }

    function loginPopPost() {
        hideError();
        error_paos.hide();
        $("[name=loginName]", popLoginForm).val($("[name=loginName]", tankuang).val());
        $("[name=passwd]", popLoginForm).val(encrypt($("[name=passwd]", tankuang).val()));
        $("[name=seccode]", popLoginForm).val($("[name=seccode]", tankuang).val());
        $("[name=fromUrl]", popLoginForm).val(window.location.href);
        popLoginForm.submit();
    }

    var url = window.parent.location.href;
    $(".label_gai", showBox).toggle(function () {
        $(".icon-weixuanzhong").css("display", "none");
        $(".icon-xuanzhong").css("display", "inline");
    }, function () {
        $(".icon-weixuanzhong").css("display", "inline");
        $(".icon-xuanzhong").css("display", "none");
    })
    if (window.addEventListener) $(".eye", tankuang).show();
    //  控制眼睛变色
    /*$(".eye",tankuang).toggle(function() {
    	$(".password input",tankuang)[0].type="text";
		$(this).find("img").attr("src",ucenter_domain+'img/loginimg/kejian.png');
	},function() {
		$(".password input",tankuang)[0].type="password";
		$(this).find("img").attr("src",ucenter_domain+'img/loginimg/bukejian.png');
	});*/
    $('.next', tankuang_phonebind).click(function () {
        try {
            $.cookie("ignore", $.cookie('uid'));
        } catch (e) {

        }
        if (typeof zhulong_login_callback == "string" && zhulong_login_callback != "") {
            window.parent.location.href = zhulong_login_callback;
        } else if (typeof zhulong_login_callback == "function") {
            zhulong_login_callback();
        } else {
            window.parent.location.href = url;
        }
    });
    $("input", showBox).keyup(function (e) {
        hideError();
        if (e.keyCode == 13) {
            loginPopPost();
        }
    });

    mobileInput.keyup(function () {
        tankuang_phonebindTishi.html("");
    });
    $('.Getcode', tankuang_phonebind).click(function () {
        var btn = $(this);
        var n = btn.attr("wait");
        if (typeof n == "string") {
            return;
        }
        hideError();
        var mobile = mobileInput.val();
        var guoji = $.trim($(".choice_guoji", tankuang_phonebind).html());
        if (guoji == "+86") {
            var reg = /^(1[0-9]{10})$/;    //手机号
            if (!reg.test(mobile)) {
                tankuang_phonebindTishi.html("请输入正确的手机号");
                return;
            }
        } else {
            var reg = /^([0-9]+)$/;    //手机号
            if (!reg.test(mobile)) {
                tankuang_phonebindTishi.html("请输入正确的手机号");
                return;
            }
        }
        mobile = guoji + mobile;
        $.ajax({
            url: ucenter_domain + "openjson/sendMobileCodeForLogin?jsoncallback=?",
            async: false,
            cache: false,
            data: {mobile: mobile},
            dataType: "jsonp",
            success: function (data) {
                if (data.errNo != 0) {
                    tankuang_phonebindTishi.html(data.msg);
                } else {
                    ZlUtil.waitLoad(btn);
                }
            }
        });
    });

    $('.denglu_btn', tankuang_phonebind).click(function () {
        hideError();
        var code = $("[placeholder=" + zn['pleaseInputSMScode'] + "]", tankuang_phonebind).val();
        var mobile = mobileInput.val();
        var guoji = $.trim($(".choice_guoji", tankuang_phonebind).html());
        if (guoji == "+86") {
            var reg = /^(1[0-9]{10})$/;    //手机号
            if (!reg.test(mobile)) {
                tankuang_phonebindTishi.html("请输入正确的手机号");
                return;
            }
        } else {
            var reg = /^([0-9]+)$/;    //手机号
            if (!reg.test(mobile)) {
                tankuang_phonebindTishi.html("请输入正确的手机号");
                return;
            }
        }
        mobile = guoji + mobile;
        $.ajax({
            url: ucenter_domain + "openjson/bindMobileCodeForLogin?jsoncallback=?",
            async: false,
            cache: false,
            data: {mobile: mobile, code: code},
            dataType: "jsonp",
            success: function (data) {
                if (data.errNo != 0) {
                    tankuang_phonebindTishi.html(data.msg);
                } else {
                    $("[name=ignoreMobile]", popLoginForm).val(1);
                    $.getJSON('https://c.zhulong.com/shownum.php?jsoncallback=?', {showtype: "mobileauthpopsuccess"}, function (data) {
                    });
                    loginPopPost();
                }
            }
        });
    });
    $('.Getcode', loginMobileCodePop).click(function () {
        var btn = $(this);
        var n = btn.attr("wait");
        if (typeof n == "string") {
            return;
        }
        $.ajax({
            url: ucenter_domain + "openjson/sendMobileCodeForLoginUid?jsoncallback=?",
            async: false,
            cache: false,
            data: {},
            dataType: "jsonp",
            success: function (data) {
                if (data.errNo != 0) {
                    showBindError(data.msg);
                } else {
                    ZlUtil.waitLoad(btn);
                }
            }
        });

    });
    $('.denglu_btn', loginMobileCodePop).click(function () {
        Tishi.html("&nbsp;");
        var code = $("input", loginMobileCodePop).eq(0).val();
        $.ajax({
            url: ucenter_domain + "openjson/bindMobileCodeForLoginForUid?jsoncallback=?",
            async: false,
            cache: false,
            data: {code: code},
            dataType: "jsonp",
            success: function (data) {
                if (data.errNo != 0) {
                    loginMobileCodePopTishi.html(data.msg);
                } else {
                    $("[name=ignoreMobile]", popLoginForm).val(1);
                    loginPopPost();
                }
            }
        });
    });

    mobileloginInput.keyup(function () {
        hidePopError(error_paos.eq(0));
        loginButtonDetect();
    });
    mobileloginInput.focus(function () {
        hidePopError(error_paos.eq(0));
    });
    mobileloginInput.blur(function () {
        var mobile = $.trim($(this).val());
        var guoji = $.trim($(".choice_guoji").html());
        if (guoji == "+86") {
            var reg = /^(1[0-9]{10})$/;    //手机号
            if (!reg.test(mobile)) {
                showPopError(error_paos.eq(0), "请输入正确的手机号");
                return;
            }
        } else {
            var reg = /^([0-9]+)$/;    //手机号
            if (!reg.test(mobile)) {
                showPopError(error_paos.eq(0), "请输入正确的手机号");
                return;
            }
        }
        loginButtonDetect();
    });
    mobilecodeInput.focus(function () {
        hidePopError(error_paos.eq(1));
    });
    mobilecodeInput.keyup(function (e) {
        hidePopError(error_paos.eq(1));
        loginButtonDetect();
    });
    mobilecodeInput.blur(function () {
        var code = mobilecodeInput.val();
        var reg = /^([0-9]{6})$/;
        if (!reg.test(code)) {
            showPopError(error_paos.eq(1), "请输入正确的验证码");
            loginButtonDetect();
            return;
        }
        loginButtonDetect();
    });
    $(".denglu_btn", tankuang).unbind("click").click(function () {
        hidePopError(error_paos.eq(2));
        hidePopError(error_paos.eq(3));
        hidePopError(error_paos.eq(0));
        hidePopError(error_paos.eq(1));
        if ($("#btns li:eq(1)").hasClass("login-active")) {
            if ($("[name=loginName]", tankuang).val() == "用户名/邮箱/手机号") {
                showPopError(error_paos.eq(2), "用户名不能为空");
                return;
            }
            if ($("[name=loginName]", tankuang).val() == "") {
                showPopError(error_paos.eq(2), "用户名不能为空");
                return;
            }
            if ($("[name=passwd]", tankuang).val() == "") {
                showPopError(error_paos.eq(3), "请输入正确的密码");
                return;
            }
            loginPopPost();
        } else {
            var mobile = $.trim(mobileloginInput.val());
            if (mobile == "") {
                showPopError(error_paos.eq(0), "手机号不能为空");
                return;
            }
            var guoji = $.trim($(".choice_guoji").html());
            if (guoji == "+86") {
                var reg = /^(1[0-9]{10})$/;    //手机号
                if (!reg.test(mobile)) {
                    showPopError(error_paos.eq(0), "请输入正确的手机号");
                    return;
                }
            } else {
                var reg = /^([0-9]+)$/;    //手机号
                if (!reg.test(mobile)) {
                    showPopError(error_paos.eq(0), "请输入正确的手机号");
                    return;
                }
            }
            var code = mobilecodeInput.val();
            var isremember = 0;
            if ($(".label_gai i:eq(1):visible").length == 1) {
                isremember = 1;
            }
            var reg = /^([0-9]{6})$/;
            if (!reg.test(code)) {
                showPopError(error_paos.eq(1), "请输入正确的验证码");
                return;
            }
            if ($.cookie("fromstep") == 2 && typeof prof == "string") {

            } else {
                prof = '';
            }
            $.ajax({
                url: ucenter_domain + "user/Loginmobilepost?jsoncallback=?",
                async: false,
                cache: false,
                data: {mobile: mobile, code: code, isremember: isremember, guoji: guoji, prof: prof},
                dataType: "jsonp",
                success: function (data) {
                    if (data.errNo == 0) {
                        error_paos.hide();
                        var html = "<div class='zhul_dl_tsmsg'>登录成功，正在努力刷新中...</div>";
                        if (typeof data['result']['return_url'] == "string") {
                            sjreg(9, 0, '注册成功', nowurl);
                        }
                        if (typeof data['result']['return_url'] == "string" || $.cookie("specialty_id") == 0 || $.cookie("specialty_id") == 20) {
                            if (prof == '') {
                                $(".major-item", showBox).click(function () {
                                    var specialty_id = $(this).attr("specialty_id");
                                    var url = ucenter_domain + '/user/changeSpecialtyId?jsoncallback=?';
                                    var params = {specialty_id: specialty_id};
                                    $.ajax({
                                        url: url,
                                        data: params,
                                        async: false,
                                        dataType: "jsonp",
                                        success: function (msg) {
                                            if (msg.errNo != 0) {
                                                showPopError(error_paos.eq(5), msg.msg);
                                            } else {
                                                if (typeof data['result']['return_url'] == "string") {
                                                    $.getJSON('https://c.zhulong.com/shownum.php?jsoncallback=?', {showtype: "loginpopregsuccess"}, function (data) {
                                                    });
                                                } else {
                                                    $.getJSON('https://c.zhulong.com/shownum.php?jsoncallback=?', {showtype: "loginpopsuccess"}, function (data) {
                                                    });
                                                }
                                                $.cookie('specialty_id', specialty_id);
                                                infosuccess();
                                                return true;
                                            }
                                        }
                                    });
                                });
                                $(".reg_zone").hide();
                                $(".tankuang_major").show();
                                return;
                            }
                        }
                        if (data['result']['email_black'] == 1) {
                            $(".reg_zone", showBox).hide();
                            $(".tankuang", showBox).hide();
                            $(".tankuang_changeEmail .jianggao_detail span", showBox).html(data.result.email);
                            $(".tankuang_changeEmail", showBox).show();
                            setTimeout(function () {
                                if (typeof zhulong_login_callback == "string" && zhulong_login_callback != "") {
                                    window.parent.location.href = zhulong_login_callback;
                                } else if (typeof zhulong_login_callback == "function") {
                                    zhulong_login_callback();
                                } else {
                                    window.parent.location.href = url;
                                }
                            }, 10000);
                        } else {
                            if (typeof data['result']['return_url'] == "string") {
                                $.getJSON('https://c.zhulong.com/shownum.php?jsoncallback=?', {showtype: "loginpopregsuccess"}, function (data) {
                                });
                            } else {
                                $.getJSON('https://c.zhulong.com/shownum.php?jsoncallback=?', {showtype: "loginpopsuccess"}, function (data) {
                                });
                            }
                            if (typeof zhulong_login_callback == "string" && zhulong_login_callback != "") {
                                window.parent.location.href = zhulong_login_callback;
                            } else if (typeof zhulong_login_callback == "function") {
                                zhulong_login_callback();
                            } else {
                                window.parent.location.href = url;
                            }

                        }
                    } else {
                        if (data.errNo == 119) {
                            showPopError(error_paos.eq(1), "请输入正确的验证码");
                            return;
                        }
                        if (data.errNo == 138) {
                            showPopError(error_paos.eq(1), "请输入正确的验证码");
                            return;
                        }
                        if (data.errNo == 1) {
                            showPopError(error_paos.eq(0), "该手机没有绑定");
                            return;
                        }
                        showPopError(error_paos.eq(0), data.msg);
                        return false;
                    }
                }
            });
        }
    });
}

function showlogin(data) {
    var error_paos = $(".popo", showBox);
    var showBox = $("#login_show_box");
    var Tishi = $(".Error", showBox);

    function showError(msg) {
        Tishi.html('<img style="padding-left: 6px;" src="' + ucenter_domain + '/img/loginimg/jingshi.png"/>' + msg).css("background-color", "#FFEEE8");
    }

    function hideError() {
        Tishi.html('').css("background-color", "#fff");
    }

    function showBindError(str) {
        showError(str);
    }

    var url = window.parent.location.href;
    if (url.indexOf("#") > -1) {
        url = url.substr(0, url.indexOf("#"));
    }
    if (data.errNo == 0) {
        error_paos.hide();
        var html = "<div class='zhul_dl_tsmsg'>登录成功，正在努力刷新中...</div>";
        if (data.result.email_black == 1) {
            $(".reg_zone", showBox).hide();
            $(".tankuang", showBox).hide();
            $(".tankuang_changeEmail .jianggao_detail span", showBox).html(data.result.email);
            $(".tankuang_changeEmail", showBox).show();
            setTimeout(function () {
                if (typeof zhulong_login_callback == "string" && zhulong_login_callback != "") {
                    window.parent.location.href = zhulong_login_callback;
                } else if (typeof zhulong_login_callback == "function") {
                    zhulong_login_callback();
                } else {
                    window.parent.location.href = url;
                }
            }, 10000);
        } else {
            if (typeof zhulong_login_callback == "string" && zhulong_login_callback != "") {
                window.parent.location.href = zhulong_login_callback;
            } else if (typeof zhulong_login_callback == "function") {
                zhulong_login_callback();
            } else {
                window.parent.location.href = url;
            }

        }


    } else {
        if (data.errNo == 154 || data.errNo == 158) {
            $(".tankuang", showBox).hide();
            $(".reg_zone", showBox).hide();
            $(".tankuang_pleasechange", showBox).show();
            return;
        } else if (data.errNo == 134 || data.errNo == 135) {

            if ($(".Tishi_code", showBox)[0].style.display == "block") {
            }
            $(".reg_zone", showBox).css("height", "500px");
            $(".Tishi_code", showBox)[0].style.display = "block";
            $(".yanzhengtu img", showBox).attr("src", ucenter_domain + 'seccode/index?time=' + Math.random());
            $(".Tishi_code a", showBox).click(function () {
                $(".yanzhengtu img", showBox).attr("src", ucenter_domain + 'seccode/index?time=' + Math.random());
            });
            return;
        } else if (data.errNo == 160) {
            try {
                var ignore = 0;
                if (ignore == $.cookie('uid')) {
                    if (typeof zhulong_login_callback == "string" && zhulong_login_callback != "") {
                        window.parent.location.href = zhulong_login_callback;
                    } else if (typeof zhulong_login_callback == "function") {
                        zhulong_login_callback();
                    } else {
                        window.parent.location.href = url;
                    }
                    return;
                }
            } catch (e) {

            }
            $(".reg_zone", showBox).hide();
            $(".tankuang", showBox).hide();
            $(".tankuang_phonebind", showBox).show();
            $.getJSON('https://c.zhulong.com/shownum.php?jsoncallback=?', {showtype: "mobileauthpop"}, function (data) {
            });

            return;
        } else if (data.errNo == 159) {
            $(".tankuang_yanzheng .shouji span", showBox).html(data.mobile);
            $(".reg_zone", showBox).hide();
            $(".tankuang", showBox).hide();
            $(".tankuang_yanzheng", showBox).show();
            return;
        } else if (data.errNo == 161) {
            showPopError(error_paos.eq(3), '密码错误');
            $(".yanzhengtu img", showBox).attr("src", ucenter_domain + 'seccode/index?time=' + Math.random());
            return;
        } else if (data.errNo == 113) {
            showPopError(error_paos.eq(2), '用户名不存在');
            $(".yanzhengtu img", showBox).attr("src", ucenter_domain + 'seccode/index?time=' + Math.random());
            return;
        } else {
            showPopError(error_paos.eq(2), data.msg);
            $(".yanzhengtu img", showBox).attr("src", ucenter_domain + 'seccode/index?time=' + Math.random());
            return;
        }
    }
}

function newlogin() {
    // 登录方法切换
    var btns = document.getElementById('btns').getElementsByTagName('li');
    var ctns = document.getElementById('content1').getElementsByTagName('li');

    for (var i = 0; i < btns.length; i++) {
        //保存每一循环的i值到对应的html元素
        btns[i].index = i;
        //给每一个按钮绑定点击事件
        btns[i].onclick = function () {
            //重置内容区每一个块的类名,隐藏所有内容
            for (var j = 0; j < ctns.length; j++) {
                ctns[j].className = '';
                btns[j].className = '';
            }
            //给对应的内容块添加类名,使其显示
            btns[this.index].className = 'login-active';
            ctns[this.index].className = 'show';
            loginButtonDetect();
            var showBox = $("#login_show_box");
            var tankuang = $(".login_center_in", showBox).eq(0);
            var mobileloginInput = $("input[placeholder=" + zn['pleaseInputMobilecode'] + "]", tankuang);
            if ($(".login-active").html() == "密码登录") {
                $("[name=loginName]", tankuang).focus();
            } else {
                mobileloginInput.focus();
            }
        }
    }
    $(".error-pao").hide();
}

function showImg() {
    file_avator = '';
    file_avator = document.getElementById('sub_img').files[0];
    var reader_avator = new FileReader();
    if ($('.suo_pic').length > 0) {
        $('.suo_pic').remove();
    }

    function fsend(files, successCallback) {
        var formData = new FormData();
        formData.append('upfile', files);
        var xhr = new XMLHttpRequest();
        xhr.onreadystatechange = function () {
            if (xhr.readyState == 4 && xhr.status == 200) {

                successCallback(xhr.responseText);

            } else {
                //console.log(xhr.statusText );
            }
        };
        xhr.open('POST', 'https://f.zhulong.com/uploadZhulongImgForEdit.php?type=forum', true);
        xhr.send(formData);
    }

    reader_avator.onloadend = function () {
        var str_bim = '<img class="suo_pic" src="' + reader_avator.result + '"/>';
        $('.up-bg').hide();
        $(".avator-box").append(str_bim);
        fsend($("#sub_img")[0].files[0], function (e) {
            e = $.parseJSON(e);
            $('.suo_pic').attr("source", e.url);
        });
        document.getElementById('sub_img').value = "";
    }
    if (file_avator) {
        reader_avator.readAsDataURL(file_avator);
    }
}

/*
补全信息弹框
*/
var userinfo = {};

function infosaveall(callback) {
    zhulong_login_callback = callback;
    var error_paos = $(".popo", showBox);
    var showBox = $("#login_show_box");
    var tankuang_info = $(".tankuang_info", showBox);
    var Tishi = $(".Error", showBox);

    var username = $.cookie('username');
    if (username.indexOf("龙友") != 0 && username.indexOf("考友") != 0) {
        infosuccess();
        return true;
    }

    function checkUsernameIsAllow(username) {
        var res = true;
        var noAllow = ['administrative', 'admin', 'manager', 'zhulong', '筑龙', '管理员', '郑曙旸', '高文安', '张绮曼', '孙继忠', '黄志达', '叶铮', '陈德坚', '梁景华', '季裕堂', '李玮珉', '陈耀光', '林学明', '沈立东', '洪约瑟', '孟建国', '陈德坚', '穆金山', '王奕', '林振中', '刘有达', '梁建国', '刘红蕾', '梁永标', '姜峰', '周娟', '张洪根', '武大年', '申振海 ', '律文秋 ', '陈华芳', '何宁', '孙廷智 ', '柏德元 ', '宋金强', '康文杰', '胡承林', '杜勇', '田福厚', '李诗平', '陈昭 ', '李长江', '吴玉英 ', '刘顺利', '劳兆帜', '朱红革', '阮文富', '刘军', '魏进中', '张瑞明', '李雨涵', '张文革', '李士良', '马代建', '毛耀民 ', '王瑞 ', '邱联合', '李锋', '褚美英', '李声高', '常占军', '李家炎', '耿黎明', '赵静全', '郭圣太', '王乃江', '郭娜仁', '孙志国', '程黎明', '兰雷 ', '牛文智', '禹晓明', '赵洪升', '佟辉', '赵汝洪', '孙威', '韩福民', '周新曦', '李法勇', '杨明', '吴建生', '王红东', '任刚', '武小军', '田东红', '刘露', '王占甫', '刘长友', '王振杰', '楼仕华', '张雯', '宋学智', '陈雪源', '刘国志', '贾薇', '张钧', '陈继平', '刘云龙', '温建', '张庆余', '周克新', '左金铸', '赵健新', '马连顺', '李秀人', '常守智', '蔡明', '邓胜辉', '林云松', '叶立平', '马新义', '李桂明', '楚峰昌', '姚凌宵', '梁宝忠', '杨再学', '赵新建', '柳铉', '李玎', '钱宏伟', '张令', '卢金山', '何建北', '李建', '付卫东', '叶存一', '高建林', '张海波', '欧阳林', '朱海明', '郑从起', '何世聪', '徐辉', '刘晓一', '刘原', '龙友', '考友'];
        for (i = 1; i < noAllow.length; i++) {
            if (username.indexOf(noAllow[i]) >= 0) {
                res = false;
                break;
            }
        }
        return res;
    };

    function checkUsername(ajax, foucs, showError) {
        var error_paos = $(".popo", showBox);
        var showBox = $("#login_show_box");
        var tankuang_info = $(".tankuang_info", showBox);
        var Tishi = $(".Error", showBox);
        if (typeof focus == "undefined") {
            focus = 1;
        }
        if (typeof showError == "undefined") {
            showError = 1;
        }
        var thisusername = $(".add-name", tankuang_info);
        var username = $.trim(thisusername.val());
        if (username != thisusername.val()) {
            if (ajax == 1) thisusername.val(username);
        }
        if (username == '') {
            if (showError == 1) {
                showPopError(error_paos.eq(5), "用户名不能为空");
                sjreg(2, -1, '用户名不能为空', nowurl);
                if (ajax == 1 && focus == 1) {
                    thisusername.focus();
                }
            }
            return false;
        }
        var rs = checkUsernameIsAllow(username);
        if (!rs) {
            if (showError == 1) {
                showPopError(error_paos.eq(5), "用户名已有");
                sjreg(2, -1, '用户名已使用', nowurl);
                if (ajax == 1 && focus == 1) {
                    thisusername.focus();
                }
            }
            return false;
        }
        //只能匹配数字,字母或汉字
        //var reg = /^[a-zA-Z0-9\u4e00-\u9fa5]+$/g;
        var reg = /^[a-zA-Z0-9\u4e00-\u9fa5]+$/g;
        var _match = reg.test(username);
        //var _match = username.match(/^[a-zA-Z0-9\u4e00-\u9fa5]+$/g);
        //匹配数字或字母(包括大小写)
        var codeMatch = username.match(/[a-zA-Z0-9]/g);
        //匹配汉字
        var charMatch = username.match(/[\u4e00-\u9fa5]/g);
        //数字或字母个数
        var codeNum = codeMatch ? codeMatch.length : 0;
        //汉字个数
        var charNum = charMatch ? charMatch.length : 0;
        if ((codeNum + 2 * charNum > 16) || (codeNum + 2 * charNum < 4)) {
            if (showError == 1) {
                showPopError(error_paos.eq(5), "用户名为4-16个字符");
                if (ajax == 1 && focus == 1) {
                    thisusername.focus();
                }
                sjreg(2, -1, '用户名请用2-8个汉字或4-16个英文字母数字', nowurl);
            }
            return false;
        }
        if (!_match) {
            if (showError == 1) {
                showPopError(error_paos.eq(5), "只能使用汉字、英文字母与数字");
                if (ajax == 1 && focus == 1) {
                    thisusername.focus();
                }
                sjreg(2, -1, '只能使用汉字、英文字母与数字', nowurl);
            }
            return false;
        }
        var success = true;
        if (ajax == 1) {
            var url = ucenter_domain + '/user/usernameIsExist?jsoncallback=?';
            var params = {username: username};
            $.ajax({
                url: url,
                data: params,
                async: false,
                dataType: "jsonp",
                success: function (msg) {
                    if (msg == '') {
                        if (showError == 1) {
                            showPopError(error_paos.eq(5), "系统繁忙,请重试");
                            if (ajax == 1 && focus == 1) {
                                thisusername.focus();
                            }
                        }
                        success = false;
                    } else {
                        var jData = msg;
                        var errNo = jData['errNo'];
                        var newname = jData['newname'];

                        if (errNo == 0) {
                            hidePopError(error_paos.eq(5));
                            sjreg(2, errNo, '', nowurl);
                        } else {
                            if (showError == 1) {
                                sjreg(2, errNo, jData['msg'], nowurl);
                                showPopError(error_paos.eq(5), "用户名已存在,请更换");
                                if (ajax == 1 && focus == 1) {
                                    thisusername.focus();
                                }
                                sjreg(2, -1, '用户名已存在,请更换', nowurl);
                                $(window).unbind("click");
                                if (newname == null || newname.length < 3) {

                                    return;
                                }
                                $('.name-box', tankuang_info).show();
                                setTimeout(function () {
                                    $(window).unbind("click").click(function (e) {
                                        if ($(e.target).closest(".name-box").length == 0) {
                                            $(".name-box").hide();
                                            $(window).unbind("click");
                                        }
                                    });
                                }, 300);
                                var tishi = '';
                                for (var i = 0; i < newname.length; i++) {
                                    $('.auto-name li i', tankuang_info).eq(i).text(newname[i]);
                                }
                                $('.auto-name li i', tankuang_info).eq(3).remove();


                            }
                            if (ajax == 1 && focus == 1) {
                                thisusername.focus();
                            }
                            success = false;
                        }
                    }
                }
            });
        }
        return success;
    };

    function checkForm1() {
        var error_paos = $(".popo", showBox);
        var showBox = $("#login_show_box");
        var tankuang_info = $(".tankuang_info", showBox);
        var Tishi = $(".Error", showBox);
    };

    function changeName() {
        var error_paos = $(".popo", showBox);
        var showBox = $("#login_show_box");
        var tankuang_info = $(".tankuang_info", showBox);
        var Tishi = $(".Error", showBox);
        var oldName = $.cookie("username");
        if (oldName.indexOf("龙友") !== 0 && oldName.indexOf("考友") !== 0) {
            if (userinfo.specialty_id > 0 && userinfo.specialty_id != 20 && userinfo.specialty_id < 22) {
                infosuccess();
                return true;
            } else {
                $(".tankuang_major", showBox).show();
                $(".tankuang_info", showBox).hide();
            }
            return;
        }
        var username = $(".add-name", tankuang_info).val();
        if (checkUsername(1, 1, 1)) {
            var url = ucenter_domain + '/user/changeUserName?jsoncallback=?';
            var params = {newUserName: username};
            $.ajax({
                url: url,
                data: params,
                async: false,
                dataType: "jsonp",
                success: function (msg) {
                    if (msg.errNo != 0) {
                        showPopError(error_paos.eq(5), msg.msg);
                    } else {
                        $.getJSON('https://c.zhulong.com/shownum.php?jsoncallback=?', {showtype: "infosaveallusername"}, function (data) {
                        });
                        userinfo.username = username;
                        if (userinfo.is_avatar == 0) {
                            return;
                        }
                        if (userinfo.specialty_id > 0 && userinfo.specialty_id != 20 && userinfo.specialty_id < 22) {
                            infosuccess();
                            return true;
                        } else {
                            $(".tankuang_major", showBox).show();
                            $(".tankuang_info", showBox).hide();
                        }
                    }
                }
            });
        }
    }

    if (typeof $.cookie('uid') != "string") {
        return false;
    }
    userinfo.username = $.cookie('username');
    userinfo.specialty_id = $.cookie('specialty_id');
    if (typeof userinfo.is_avatar == "undefined") {
        $.ajax({
            url: ucenter_domain + "openjson/MeInfo?jsoncallback=?",
            data: {},
            async: false,
            dataType: "jsonp",
            success: function (data) {
                if (data.result.username != $.cookie('username')) {
                    $.cookie('username', data.result.username);
                }
                if (data.result.specialty_id != $.cookie('specialty_id')) {
                    $.cookie('specialty_id', data.result.specialty_id);
                }
                $.cookie('is_avatar', data.result.is_avatar);
            }

        });
        userinfo.is_avatar = $.cookie('is_avatar');
        userinfo.username = $.cookie('username');
        userinfo.specialty_id = $.cookie('specialty_id');
    }
    if (typeof userinfo.is_avatar == "undefined") {
        setTimeout(
            function () {
                infosaveall(callback);
            }, 300);
        return;
    }
    if (username.indexOf("龙友") != 0 && username.indexOf("考友") != 0) {
        if (userinfo.is_avatar == 1) {
            if (userinfo.specialty_id > 0 && userinfo.specialty_id != 20 && userinfo.specialty_id < 22) {
                infosuccess();
                return true;
            }
        }
    }
    var buttonInit = false;

    function infosaveallButtonInit() {
        var error_paos = $(".popo", showBox);
        var showBox = $("#login_show_box");
        var tankuang_info = $(".tankuang_info", showBox);
        var Tishi = $(".Error", showBox);
        if (buttonInit) {
            return;
        }
        buttonInit = true;
        var file_avator = '';
        var username = userinfo.username;
        if (username.indexOf("龙友") != 0 && username.indexOf("考友") != 0) {
            $(".add-name", tankuang_info).val(username);
            $(".add-name", tankuang_info).attr("disabled", true);
            if (userinfo.is_avatar == 1) {

            }
        }
        //检查用户名是否可用

        $('.avator-box').hover(function () {
            $('#sub_img').show();
            $('.up-again', tankuang_info).show();
        }, function () {
            $('#sub_img').hide();
            $('.up-again', tankuang_info).hide();
        });
        $(".add-name", tankuang_info).blur(function () {
            if (checkUsername(1, 1, 1)) {

            }
            checkForm1();
        });
        $('.auto-name li', tankuang_info).click(function () {
            var content = $(this).find('i').text();
            $(".add-name", tankuang_info).val(content);
            $('.name-box', tankuang_info).hide();
            hidePopError(error_paos.eq(5));
            error_paos.eq(5).prev().removeClass("error-red");
            checkForm1();
            $(window).unbind("click");
        });
        $('.add-btn', tankuang_info).click(function () {
            var avatar_url = $('.suo_pic').attr("source");
            if (typeof avatar_url != "undefined") {
                var url = ucenter_domain + '/user/uploadAvatarForUrl?jsoncallback=?';
                var params = {filename: avatar_url};
                $.ajax({
                    url: url,
                    data: params,
                    async: false,
                    dataType: "jsonp",
                    success: function (msg) {
                        if (msg.errNo != 0) {
                            showPopError(error_paos.eq(5), msg.msg);
                        } else {
                            $.getJSON('https://c.zhulong.com/shownum.php?jsoncallback=?', {showtype: "infosaveallavatar"}, function (data) {
                            });
                            userinfo.is_avatar = "1";
                            $.cookie("is_avatar", 1);
                            changeName();
                        }
                    }
                });
            } else {
                changeName();
            }
        });
        $(".major-item", showBox).click(function () {
            var specialty_id = $(this).attr("specialty_id");
            var url = ucenter_domain + '/user/changeSpecialtyId?jsoncallback=?';
            var params = {specialty_id: specialty_id};
            $.ajax({
                url: url,
                data: params,
                async: false,
                dataType: "jsonp",
                success: function (msg) {
                    if (msg.errNo != 0) {
                        showPopError(error_paos.eq(5), msg.msg);
                    } else {
                        $.getJSON('https://c.zhulong.com/shownum.php?jsoncallback=?', {showtype: "infosaveallspecialty"}, function (data) {
                        });
                        $.cookie('specialty_id', specialty_id);
                        infosuccess();
                        return true;
                    }
                }
            });
        });
        /*$('.add-btn').click(function(){
		    var formData = new FormData($("#userForm")[0]);
		    $.ajax({
		        type:'POST',
		        url:url,
		        data:formData,
		        contentType:undefined,
		        processData:false,
		        success:function(data){}
		    });
		})*/
    }

    function infosaveallShow() {
        var showBox = $("#login_show_box");
        $(".reg_zone", showBox).hide();
        var username = userinfo.username;
        var boolean = true;
        if (username.indexOf("龙友") != 0 && username.indexOf("考友") != 0) {
            if (userinfo.is_avatar == 1) {
                boolean = false;
                $(".tankuang_info", showBox).hide();
                $(".tankuang_major", showBox).show();
            }
        }
        if (boolean) {
            $(".tankuang_major", showBox).hide();
            $(".tankuang_info", showBox).show();
        }
        //setTimeout(openLoginModal,1000);
        $('.cover').fadeTo('fast', 0.7);
        $("#login_show_box").show();
        infosaveallButtonInit();
    }

    function infosavePopInit() {
        if ($("body").data("loadpop") == 1) {
            return;
        }
        $("body").data("loadpop", 1);
        if (typeof localStorage == "object") {
            if (typeof localStorage[getLoginPopName] == "string") {
                $("body").data("loginTpl", localStorage[getLoginPopName]);
                var s = "login_show_box";
                if ($("#login_show_box").length > 0) {

                } else {
                    var str = '<div id="' + s + '" style="display:none">' + localStorage[getLoginPopName] + '</div>';
                    $("body").append(str);
                    setTimeout(LoginPopInit, 300);
                    $("body").append('<div class="cover" style="width: 100%;height: 100%;background: #000000;opacity: 0.5;position: fixed;top: 0;z-index:11115;display: none;"></div>')
                    setTimeout(newLoginInit, 300);
                }
                return;
            }
        }
        $.ajax({
            url: ucenter_domain + "/openjson/getLoginPop?jsoncallback=?",
            data: {},
            async: false,
            dataType: "jsonp",
            success: function (data) {
                if (typeof data == undefined || typeof data['result'] == undefined || typeof data['result']['html'] == undefined) {
                    return;
                }
                $("body").data("loginTpl", data.result.html);
                if (typeof localStorage == "object") {
                    localStorage[getLoginPopName] = data.result.html;
                }
                var s = "login_show_box";
                if ($("#login_show_box").length > 0) {

                } else {
                    var str = '<div id="' + s + '" style="display:none">' + data.result.html + '</div>';
                    $("body").append(str);
                    if ($(".cover").length == 0) {
                        $("body").append('<div class="cover" style="width: 100%;height: 100%;background: #000000;opacity: 0.5;position: fixed;top: 0;z-index:11115;display: none;"></div>');
                    }

                }

            }

        });
    }
    ;
    if ($("#login_show_box").length == 0) {
        if (document.body) {
            infosavePopInit();
        } else {
            $(infosavePopInit);
        }
    }
    if ($("#login_show_box").length == 0) {
        setTimeout(
            function () {
                infosaveall(callback);
            }, 300);
        return;
    }
    infosaveallShow();
    $.getJSON('https://c.zhulong.com/shownum.php?jsoncallback=?', {showtype: "infosaveall"}, function (data) {
    })
    return false;
};
//补全信息
/*图片上传功能*/
// 注册返回信息函数
var nowurl = document.referrer == '' ? window.location.href : document.referrer;

function sjreg(step_id, err, msg, nowurl) {
    try {
        $.getJSON('https://fx.zhulong.com/openapi/TraceSource/reg?union_id=' + $.cookie('eduumuid') + '&device=' + 1 + '&step_id=' + step_id + '&errno=' + err + '&return_status=' + msg + '&referer=' + nowurl);
    } catch (e) {

    }
}


